From: Benjamin Peterson Date: Sun, 9 May 2010 03:22:58 +0000 (+0000) Subject: make condition more specific X-Git-Tag: v3.2a1~855 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31191a9cc520fd39edf9e23b5fd410df3c41a4d8;p=python make condition more specific --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 7fb4376390..b7d819a5e0 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -938,7 +938,8 @@ class Win32KillTests(unittest.TestCase): 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')