We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccf675 commit 43cd0e4Copy full SHA for 43cd0e4
examples/conftest.py
@@ -1,3 +1,32 @@
1
+from pathlib import Path
2
+
3
4
+def set_dask_multiplier():
5
+ # Overwrite number of multiplications for dask.DataFrame
6
+ yield
7
+ file = Path(__file__).parent / "Overview.ipynb"
8
+ text = file.read_text()
9
+ old = "reps = 10000"
10
+ new = "reps = 16"
11
+ assert text.count(old) == 1
12
+ test_text = text.replace(old, new)
13
+ file.write_text(test_text)
14
15
+ file.write_text(text)
16
17
18
19
+gen = set_dask_multiplier()
20
21
22
+def pytest_configure(config):
23
+ next(gen)
24
25
26
+def pytest_unconfigure(config):
27
28
29
30
def pytest_runtest_makereport(item, call):
31
"""
32
Skip tests that fail because "the kernel died before replying to kernel_info"
0 commit comments