From 96f0de90043d7497f6321c225aeec51983fb12c2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 29 Jul 2010 00:29:00 +0000 Subject: [PATCH] Update test_os.py according to my last changes on _Environ.__repr__() --- Lib/test/test_os.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 81d05abe22a..da5dfd7fb77 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)