Skip to content

Commit 4d31ea8

Browse files
add a comment explaining the modimport tests
1 parent bb750a7 commit 4d31ea8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/test_modimport.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
@pytest.mark.parametrize('modfile', MODSET, ids=lambda x: x.purebasename)
1414
def test_fileimport(modfile):
15+
# this test ensures all internal packages can import
16+
# without needing the pytest namespace being set
17+
# this is critical for the initialization of xdist
18+
1519
res = subprocess.call([
1620
sys.executable,
1721
'-c', 'import sys, py; py.path.local(sys.argv[1]).pyimport()',

0 commit comments

Comments
 (0)