]> granicus.if.org Git - python/commitdiff
Skip test that does not raise an error on Windows.
authorR. David Murray <rdmurray@bitdance.com>
Mon, 27 Dec 2010 04:31:48 +0000 (04:31 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 27 Dec 2010 04:31:48 +0000 (04:31 +0000)
I'm assuming that the putative path from the malformed
pth file is simply not found and therefore ignored.

Lib/test/test_site.py

index fb41fc9b25fc1a4ba95c499e9935bc797bd14cc2..9b31a3945c565f1fc150c2f313f3c225ae23e4f3 100644 (file)
@@ -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")