diff options
| author | Brett Cannon <brett@python.org> | 2016-04-08 22:04:28 (GMT) |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2016-04-08 22:04:28 (GMT) |
| commit | 5f0507d8ab2fee70139ff147c5f7d472e8f4ba2b (patch) | |
| tree | 1c786d5ca8a1d515b9396998f55ad535f26acc19 /Lib/test/test_site.py | |
| parent | ef0138f42153d467edf8b0429c531f5204fe45dc (diff) | |
| download | cpython-5f0507d8ab2fee70139ff147c5f7d472e8f4ba2b.zip cpython-5f0507d8ab2fee70139ff147c5f7d472e8f4ba2b.tar.gz cpython-5f0507d8ab2fee70139ff147c5f7d472e8f4ba2b.tar.bz2 | |
Issue #26587: Allow .pth files to specify file paths as well as
directories.
Thanks to Wolfgang Langner for the bug report and initial version of
the patch.
Diffstat (limited to 'Lib/test/test_site.py')
| -rw-r--r-- | Lib/test/test_site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 21628a9..f698927 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -75,7 +75,7 @@ class HelperFunctionsTests(unittest.TestCase): def test_init_pathinfo(self): dir_set = site._init_pathinfo() for entry in [site.makepath(path)[1] for path in sys.path - if path and os.path.isdir(path)]: + if path and os.path.exists(path)]: self.assertIn(entry, dir_set, "%s from sys.path not found in set returned " "by _init_pathinfo(): %s" % (entry, dir_set)) |
