From: Victor Stinner <victor.stinner@haypocalc.com> Date: Thu, 29 Jul 2010 00:29:00 +0000 (+0000) Subject: Update test_os.py according to my last changes on _Environ.__repr__() X-Git-Tag: v3.2a1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96f0de90043d7497f6321c225aeec51983fb12c2;p=python Update test_os.py according to my last changes on _Environ.__repr__() --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 81d05abe22..da5dfd7fb7 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)