diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-24 15:12:56 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-25 15:11:54 -0500 |
commit | 20998572517413d52e4ca63a79d5a790578d19cb (patch) | |
tree | d5d6d7f9ed7e0c9dfb19fceb27374d0823b6f970 /tests/test_testing.py | |
parent | 3c57eda03b6a1a40f480db30a19978e95dfbed31 (diff) | |
download | python-coveragepy-git-20998572517413d52e4ca63a79d5a790578d19cb.tar.gz |
Control the sys.path that tests see
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r-- | tests/test_testing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 2b01584e..79d8dcae 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -19,6 +19,12 @@ from tests.coveragetest import CoverageTest, convert_skip_exceptions from tests.helpers import CheckUniqueFilenames, re_lines, re_line +def test_xdist_sys_path_nuttiness_is_fixed(): + # See conftest.py:fix_xdist_sys_path + assert sys.path[1] != '' + assert os.environ.get('PYTHONPATH') is None + + class TestingTest(TestCase): """Tests of helper methods on `backunittest.TestCase`.""" |