Kaydet (Commit) ad4ccfde authored tarafından R. David Murray's avatar R. David Murray

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.
üst 0d711169
...@@ -130,6 +130,8 @@ class HelperFunctionsTests(unittest.TestCase): ...@@ -130,6 +130,8 @@ class HelperFunctionsTests(unittest.TestCase):
self.assertRegex(err_out.getvalue(), 'Traceback') self.assertRegex(err_out.getvalue(), 'Traceback')
self.assertRegex(err_out.getvalue(), 'ImportError') 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): def test_addpackage_import_bad_pth_file(self):
# Issue 5258 # Issue 5258
pth_dir, pth_fn = self.make_pth("abc\x00def\n") pth_dir, pth_fn = self.make_pth("abc\x00def\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment