[Python-checkins] r80889 - python/branches/py3k/Lib/test/test_posix.py
victor.stinner
python-checkins at python.org
Fri May 7 00:19:31 CEST 2010
Author: victor.stinner
Date: Fri May 7 00:19:30 2010
New Revision: 80889
Log:
Fix test_posix (regression introduced by r80885)
Modified:
python/branches/py3k/Lib/test/test_posix.py
Modified: python/branches/py3k/Lib/test/test_posix.py
==============================================================================
--- python/branches/py3k/Lib/test/test_posix.py (original)
+++ python/branches/py3k/Lib/test/test_posix.py Fri May 7 00:19:30 2010
@@ -299,9 +299,13 @@
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'):
More information about the Python-checkins
mailing list