testing/conftest.py: testdir: set PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 (#6655)

Fixes https://github.com/pytest-dev/pytest/pull/4518.
This commit is contained in:
Daniel Hahler
2020-02-04 02:59:20 +01:00
committed by GitHub
parent aa0328782f
commit 4316fe8a92
5 changed files with 13 additions and 0 deletions

View File

@@ -1227,6 +1227,7 @@ def test_runs_twice(testdir, run_and_parse):
def test_runs_twice_xdist(testdir, run_and_parse):
pytest.importorskip("xdist")
testdir.monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
f = testdir.makepyfile(
"""
def test_pass():