public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jupyter-kernel-test] epel10: Add patch for upstream issue #42
@ 2026-07-11 15:45 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-11 15:45 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-jupyter-kernel-test
Branch : epel10
Commit : 1b516a2655794bf916a6a07d590252b068e1487e
Author : Miro Hrončok <miro@hroncok.cz>
Date   : 2018-07-02T22:34:36+02:00
Stats  : +27/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-jupyter-kernel-test/c/1b516a2655794bf916a6a07d590252b068e1487e?branch=epel10

Log:
Add patch for upstream issue #42

---
diff --git a/0b78c2835fad5df3be182ddd5013a73a63c4f81e.patch b/0b78c2835fad5df3be182ddd5013a73a63c4f81e.patch
new file mode 100644
index 0000000..3a81086
--- /dev/null
+++ b/0b78c2835fad5df3be182ddd5013a73a63c4f81e.patch
@@ -0,0 +1,23 @@
+From 0b78c2835fad5df3be182ddd5013a73a63c4f81e Mon Sep 17 00:00:00 2001
+From: Thomas Kluyver <thomas@kluyver.me.uk>
+Date: Mon, 2 Jul 2018 22:27:09 +0200
+Subject: [PATCH] Fix test for changed IPython behaviour
+
+Closes gh-42
+---
+ test_ipykernel.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test_ipykernel.py b/test_ipykernel.py
+index 8abe86a..fe85aff 100644
+--- a/test_ipykernel.py
++++ b/test_ipykernel.py
+@@ -46,7 +46,7 @@ class IPyKernelTests(jkt.KernelTests):
+     # these samples should respectively be unambigiously complete statements
+     # (which should be executed on <enter>), incomplete statements or code
+     # which should be identified as invalid
+-    complete_code_samples = ['1', "print('hello, world')", "def f(x):\n  return x*2\n\n"]
++    complete_code_samples = ['1', "print('hello, world')", "def f(x):\n  return x*2\n\n\n"]
+     incomplete_code_samples = ["print('''hello", "def f(x):\n  x*2"]
+     invalid_code_samples = ['import = 7q']
+ 

diff --git a/python-jupyter-kernel-test.spec b/python-jupyter-kernel-test.spec
index 4cd6420..3bf64a4 100644
--- a/python-jupyter-kernel-test.spec
+++ b/python-jupyter-kernel-test.spec
@@ -10,6 +10,9 @@ License:        BSD
 URL:            https://pypi.python.org/pypi/%{srcname}
 Source0:        https://github.com/jupyter/%{srcname_}/archive/%{version}/%{srcname}-%{version}.tar.gz
 
+# https://github.com/jupyter/jupyter_kernel_test/issues/42
+Patch0:         https://github.com/jupyter/jupyter_kernel_test/commit/0b78c2835fad5df3be182ddd5013a73a63c4f81e.patch
+
 BuildArch:      noarch
 
 # No support for Python 2.
@@ -43,7 +46,7 @@ successful code execution and conformance with the Jupyter Messaging Protocol
 
 
 %prep
-%autosetup -n %{srcname_}-%{version}
+%autosetup -n %{srcname_}-%{version} -p1
 
 
 %build

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-11 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11 15:45 [rpms/python-jupyter-kernel-test] epel10: Add patch for upstream issue #42 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox