Update test_os.py according to my last changes on _Environ.__repr__()

This commit is contained in:
Victor Stinner 2010-07-29 00:29:00 +00:00
parent bed7117fda
commit 96f0de9004
1 changed files with 3 additions and 1 deletions

View File

@ -423,7 +423,9 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
"""Check that the repr() of os.environ looks like environ({...})."""
env = os.environ
self.assertTrue(isinstance(env.data, dict))
self.assertEqual(repr(env), 'environ({!r})'.format(env.data))
self.assertEqual(repr(env), 'environ({{{}}})'.format(', '.join(
'{!r}: {!r}'.format(key, value)
for key, value in env.items())))
def test_get_exec_path(self):
defpath_list = os.defpath.split(os.pathsep)