Fix test_posix (regression introduced by r80885)
This commit is contained in:
parent
0d6fe51e4f
commit
17b490d706
|
@ -299,9 +299,13 @@ class PosixTester(unittest.TestCase):
|
||||||
posix.lchflags(support.TESTFN, st.st_flags)
|
posix.lchflags(support.TESTFN, st.st_flags)
|
||||||
|
|
||||||
def test_environ(self):
|
def test_environ(self):
|
||||||
|
if os.name == "nt":
|
||||||
|
item_type = str
|
||||||
|
else:
|
||||||
|
item_type = bytes
|
||||||
for k, v in posix.environ.items():
|
for k, v in posix.environ.items():
|
||||||
self.assertEqual(type(k), str)
|
self.assertEqual(type(k), item_type)
|
||||||
self.assertEqual(type(v), str)
|
self.assertEqual(type(v), item_type)
|
||||||
|
|
||||||
def test_getcwd_long_pathnames(self):
|
def test_getcwd_long_pathnames(self):
|
||||||
if hasattr(posix, 'getcwd'):
|
if hasattr(posix, 'getcwd'):
|
||||||
|
|
Loading…
Reference in New Issue