diff options
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 81d05ab..da5dfd7 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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) |