Skip to content

Commit af052cb

Browse files
committed
fix pytest-xdist detection
1 parent 872320e commit af052cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
IS_PERF_TRAMPOLINE_SUPPORTED, reason="perf trampoline is supported"
3939
)
4040

41-
IS_PYTEST_XDIST_INSTALLED = importlib.util.find_spec("pytest_xdist") is not None
41+
# The name for the pytest-xdist plugin is just "xdist"
42+
IS_PYTEST_XDIST_INSTALLED = importlib.util.find_spec("xdist") is not None
4243
skip_without_pytest_xdist = pytest.mark.skipif(
4344
not IS_PYTEST_XDIST_INSTALLED,
4445
reason="pytest_xdist not installed",

0 commit comments

Comments
 (0)