summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-07-29 00:29:00 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-07-29 00:29:00 (GMT)
commit96f0de90043d7497f6321c225aeec51983fb12c2 (patch)
tree47b18fa53e1f17871ab547778139090ac55a668b /Lib
parentbed7117fdabcc24dd87a269b051f9b57b4c4909a (diff)
downloadcpython-96f0de90043d7497f6321c225aeec51983fb12c2.zip
cpython-96f0de90043d7497f6321c225aeec51983fb12c2.tar.gz
cpython-96f0de90043d7497f6321c225aeec51983fb12c2.tar.bz2
Update test_os.py according to my last changes on _Environ.__repr__()
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py4
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)