From e70b1653c250b4f4475b2f3830c1dce537a10ea1130d0690f8de4f5248c44383 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 28 Feb 2022 10:00:45 +0000 Subject: [PATCH 1/3] . OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=34 --- python-nbclient.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-nbclient.spec b/python-nbclient.spec index 02dbdf0..625bbcb 100644 --- a/python-nbclient.spec +++ b/python-nbclient.spec @@ -60,6 +60,7 @@ BuildRequires: %{python_module ipython} BuildRequires: %{python_module ipywidgets < 8} BuildRequires: %{python_module nbclient = %{version}} BuildRequires: %{python_module pytest >= 4.1} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module xmltodict} %endif %python_subpackages From d73f8ad75cbd75c1571241e19b71d971a5d1a248f6af9251d471565f3a37808d Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 28 Feb 2022 10:18:17 +0000 Subject: [PATCH 2/3] - Skip more failing tests due to new Exception message format OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=35 --- python-nbclient.changes | 5 +++++ python-nbclient.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-nbclient.changes b/python-nbclient.changes index 9be6d9e..6d21d61 100644 --- a/python-nbclient.changes +++ b/python-nbclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 28 10:17:42 UTC 2022 - Ben Greiner + +- Skip more failing tests due to new Exception message format + ------------------------------------------------------------------- Thu Feb 17 16:33:39 UTC 2022 - Arun Persaud diff --git a/python-nbclient.spec b/python-nbclient.spec index 625bbcb..98f30ff 100644 --- a/python-nbclient.spec +++ b/python-nbclient.spec @@ -90,7 +90,7 @@ export IPYKERNEL_CELL_NAME="" # tests on parallel notebooks randomly fail (4 tests) - https://github.com/jupyter/nbclient/pull/74#issuecomment-635929953 donttest="parallel_notebooks" # https://github.com/jupyter/nbclient/issues/189 -donttest+=" or (test_run_all_notebooks and Interrupt.ipynb)" +donttest+=" or (test_run_all_notebooks and (opts6 or opts8 or opts9))" # extra -v for more verbose error diffs %pytest -v -k "not ($donttest)" %endif From 4a8c0ba8e0551eea94a9a41785532c62dcfc69ff66e6b98d6ed2ae3d50398a7a Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 28 Feb 2022 10:29:43 +0000 Subject: [PATCH 3/3] declare asyncio mode OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=36 --- python-nbclient.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-nbclient.spec b/python-nbclient.spec index 98f30ff..22f5c6c 100644 --- a/python-nbclient.spec +++ b/python-nbclient.spec @@ -92,7 +92,7 @@ donttest="parallel_notebooks" # https://github.com/jupyter/nbclient/issues/189 donttest+=" or (test_run_all_notebooks and (opts6 or opts8 or opts9))" # extra -v for more verbose error diffs -%pytest -v -k "not ($donttest)" +%pytest -v -k "not ($donttest)" --asyncio-mode=auto %endif %if ! %{with test}