diff --git a/testing/test_modimport.py b/testing/test_modimport.py index 9c7293bb8..2ab86bf7a 100644 --- a/testing/test_modimport.py +++ b/testing/test_modimport.py @@ -12,6 +12,10 @@ MODSET = [ @pytest.mark.parametrize('modfile', MODSET, ids=lambda x: x.purebasename) def test_fileimport(modfile): + # this test ensures all internal packages can import + # without needing the pytest namespace being set + # this is critical for the initialization of xdist + res = subprocess.call([ sys.executable, '-c', 'import sys, py; py.path.local(sys.argv[1]).pyimport()',