mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
0d711169fa
commit
ad4ccfdeb2
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue