From 4d31ea83160331d8eb97de477bc3476d1a39653f Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 15 Mar 2017 18:26:01 +0100 Subject: [PATCH] add a comment explaining the modimport tests --- testing/test_modimport.py | 4 ++++ 1 file changed, 4 insertions(+) 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()',