summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-09 03:22:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-05-09 03:22:58 (GMT)
commit31191a9cc520fd39edf9e23b5fd410df3c41a4d8 (patch)
treeb07aaff1e3937441695cd0986e33f9e49b52728e /Lib/test/test_os.py
parent6f137ca4693a9c37ec012846aebc02f6863547be (diff)
downloadcpython-31191a9cc520fd39edf9e23b5fd410df3c41a4d8.zip
cpython-31191a9cc520fd39edf9e23b5fd410df3c41a4d8.tar.gz
cpython-31191a9cc520fd39edf9e23b5fd410df3c41a4d8.tar.bz2
make condition more specific
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 7fb4376..b7d819a 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')