Skip to content

Commit c0cd280

Browse files
committed
Switch from pytest-parallel to pytest-xdist
1 parent 1d24067 commit c0cd280

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dedalus/tests/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
def base_cmd():
1313
workers = os.getenv("PYTEST_WORKERS", "auto")
14-
return [f"--ignore={testpath}/test_spherical_ncc.py", f"--ignore={testpath}/test_cylinder_ncc.py", f"--workers={workers}"]
14+
ignore_options = [f"--ignore={testpath}/test_spherical_ncc.py", f"--ignore={testpath}/test_cylinder_ncc.py"]
15+
xdist_options = [f"-n={workers}", "--dist=worksteal"]
16+
return ignore_options + xdist_options
1517

1618
def test(report=False):
1719
"""Run tests."""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def read(rel_path):
191191
"pytest",
192192
"pytest-benchmark",
193193
"pytest-cov",
194-
"pytest-parallel",
194+
"pytest-xdist",
195195
"scipy >= 1.4.0",
196196
"xarray"]
197197

0 commit comments

Comments
 (0)