Commit 96f0de90 authored by Victor Stinner's avatar Victor Stinner

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

parent bed7117f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment