diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-12-27 04:31:48 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-12-27 04:31:48 (GMT) |
commit | ad4ccfdeb2e8300e58a31694e99ff3400ecc64f8 (patch) | |
tree | 65fc9ebd91e4430ce6efb6aa68ee6563019837d5 /Lib/test | |
parent | 0d711169fac26532249acc9aef20af906fe206c9 (diff) | |
download | cpython-ad4ccfdeb2e8300e58a31694e99ff3400ecc64f8.zip cpython-ad4ccfdeb2e8300e58a31694e99ff3400ecc64f8.tar.gz cpython-ad4ccfdeb2e8300e58a31694e99ff3400ecc64f8.tar.bz2 |
Skip test that does not raise an error on Windows.
I'm assuming that the putative path from the malformed
pth file is simply not found and therefore ignored.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_site.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index fb41fc9..9b31a39 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -130,6 +130,8 @@ class HelperFunctionsTests(unittest.TestCase): self.assertRegex(err_out.getvalue(), 'Traceback') self.assertRegex(err_out.getvalue(), 'ImportError') + @unittest.skipIf(sys.platform == "win32", "Windows does not raise an " + "error for file paths containing null characters") def test_addpackage_import_bad_pth_file(self): # Issue 5258 pth_dir, pth_fn = self.make_pth("abc\x00def\n") |