add a comment explaining the modimport tests

This commit is contained in:
Ronny Pfannschmidt 2017-03-15 18:26:01 +01:00
parent bb750a7945
commit 4d31ea8316
1 changed files with 4 additions and 0 deletions

View File

@ -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()',