New issue 564: xdist glitch passing config files from master to slaves https://bitbucket.org/hpk42/pytest/issue/564/xdist-glitch-passing-config-files-from
Sergey Shepelev: Let me speak with code: ``` % ls -lh -rw-r--r-- 1 temoto temoto 33 Aug 13 11:35 conf -rw-r--r-- 1 temoto temoto 25 Aug 13 11:35 test_evil.py -rw-r--r-- 1 temoto temoto 24 Aug 13 11:36 tests.py % cat conf [pytest] python_files = tests.py % cat test_evil.py def test_evil(): pass % cat tests.py def test_good(): pass % ../env/bin/py.test --collect-only -c conf ==================================================================================== test session starts ===================================================================================== platform linux2 -- Python 2.7.6 -- py-1.4.23 -- pytest-2.6.0 plugins: xdist, django collected 1 items <Module 'tests.py'> <Function 'test_good'> % ../env/bin/py.test -c conf --verbose ==================================================================================== test session starts ===================================================================================== platform linux2 -- Python 2.7.6 -- py-1.4.23 -- pytest-2.6.0 -- /home/temoto/env/bin/python2.7 plugins: xdist, django collected 1 items tests.py@1::test_good PASSED # So far everything is cool. But xdist does not respect python_files from config. % ../env/bin/py.test -c conf -n2 --verbose ==================================================================================== test session starts ===================================================================================== platform linux2 -- Python 2.7.6 -- py-1.4.23 -- pytest-2.6.0 -- /home/temoto/env/bin/python2.7 plugins: xdist, django [gw0] linux2 Python 2.7.6 cwd: /home/temoto/xdist-bug [gw1] linux2 Python 2.7.6 cwd: /home/temoto/xdist-bug [gw0] Python 2.7.6 (default, Mar 22 2014, 22:59:56) -- [GCC 4.8.2] [gw1] Python 2.7.6 (default, Mar 22 2014, 22:59:56) -- [GCC 4.8.2] gw0 [1] / gw1 [1] scheduling tests via LoadScheduling test_evil.py@1::test_evil [gw0] PASSED test_evil.py@1::test_evil ``` _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit