[Python-checkins] r81017 - python/branches/py3k/Lib/test/test_os.py

benjamin.peterson python-checkins at python.org
Sun May 9 05:22:58 CEST 2010


Author: benjamin.peterson
Date: Sun May  9 05:22:58 2010
New Revision: 81017

Log:
make condition more specific

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

Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py	(original)
+++ python/branches/py3k/Lib/test/test_os.py	Sun May  9 05:22:58 2010
@@ -938,7 +938,8 @@
 
 
 class MiscTests(unittest.TestCase):
-    @unittest.skipIf(sys.platform == "win32", "POSIX specific test")
+
+    @unittest.skipIf(os.name == "nt", "POSIX specific test")
     def test_fsencode(self):
         self.assertEquals(os.fsencode(b'ab\xff'), b'ab\xff')
         self.assertEquals(os.fsencode('ab\uDCFF'), b'ab\xff')


More information about the Python-checkins mailing list