1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
From: Gordon Ball <gordon@chronitis.net>
Date: Tue, 15 Sep 2020 12:31:43 +0000
Subject: Patch flaky or unavailable tests
* Don't test ipywidgets (up to date version not available)
* Skip other notebook tests which appear to race
* Extend timeouts for parallel tests
---
tests/test_client.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/test_client.py b/tests/test_client.py
index 166beba..fc4093f 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -336,8 +336,6 @@ def filter_messages_on_error_output(err_output):
},
marks=pytest.mark.skipif(python_implementation() == "PyPy", reason="PyPy hangs"),
),
- ("JupyterWidgets.ipynb", {"kernel_name": "python"}),
- ("Skip Exceptions with Cell Tags.ipynb", {"kernel_name": "python"}),
("Skip Exceptions.ipynb", {"kernel_name": "python", "allow_errors": True}),
("Skip Execution with Cell Tag.ipynb", {"kernel_name": "python"}),
("SVG.ipynb", {"kernel_name": "python"}),
@@ -374,7 +372,7 @@ def test_parallel_notebooks(capfd, tmpdir):
for t in threads:
t.start()
for t in threads:
- t.join(timeout=2)
+ t.join(timeout=20)
captured = capfd.readouterr()
assert filter_messages_on_error_output(captured.err) == ""
@@ -863,6 +861,7 @@ while True: continue
executed = execute(original, os.path.dirname(filename))
assert_notebooks_equal(original, executed)
+ @pytest.mark.skip()
def test_widgets(self):
"""Runs a test notebook with widgets and checks the widget state is saved."""
input_file = os.path.join(current_dir, "files", "JupyterWidgets.ipynb")
|