From: Victor Stinner Date: Thu, 6 May 2010 22:19:30 +0000 (+0000) Subject: Fix test_posix (regression introduced by r80885) X-Git-Tag: v3.2a1~901 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17b490d7064ac18e18e6a141f7b7319feb08c08d;p=python Fix test_posix (regression introduced by r80885) --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index fa1abe3f15..cbc786cdc0 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -299,9 +299,13 @@ class PosixTester(unittest.TestCase): posix.lchflags(support.TESTFN, st.st_flags) def test_environ(self): + if os.name == "nt": + item_type = str + else: + item_type = bytes for k, v in posix.environ.items(): - self.assertEqual(type(k), str) - self.assertEqual(type(v), str) + self.assertEqual(type(k), item_type) + self.assertEqual(type(v), item_type) def test_getcwd_long_pathnames(self): if hasattr(posix, 'getcwd'):