[Python-checkins] r87508 - python/branches/py3k/Lib/test/test_site.py

r.david.murray python-checkins at python.org
Mon Dec 27 05:31:48 CET 2010


Author: r.david.murray
Date: Mon Dec 27 05:31:48 2010
New Revision: 87508

Log:
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.


Modified:
   python/branches/py3k/Lib/test/test_site.py

Modified: python/branches/py3k/Lib/test/test_site.py
==============================================================================
--- python/branches/py3k/Lib/test/test_site.py	(original)
+++ python/branches/py3k/Lib/test/test_site.py	Mon Dec 27 05:31:48 2010
@@ -130,6 +130,8 @@
         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")


More information about the Python-checkins mailing list