diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-06 22:19:30 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-06 22:19:30 (GMT) |
commit | 17b490d7064ac18e18e6a141f7b7319feb08c08d (patch) | |
tree | bdf5e5b682a8f32c2dcade87c90924e74965d478 /Lib | |
parent | 0d6fe51e4fa835e8d3ecf8f12f5c379606d2f9cd (diff) | |
download | cpython-17b490d7064ac18e18e6a141f7b7319feb08c08d.zip cpython-17b490d7064ac18e18e6a141f7b7319feb08c08d.tar.gz cpython-17b490d7064ac18e18e6a141f7b7319feb08c08d.tar.bz2 |
Fix test_posix (regression introduced by r80885)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posix.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index fa1abe3..cbc786c 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'): |