mirror of https://github.com/python/cpython
Update test_os.py according to my last changes on _Environ.__repr__()
This commit is contained in:
parent
bed7117fda
commit
96f0de9004
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue