[Python-checkins] r83216 - python/branches/py3k/Lib/test/test_os.py
victor.stinner
python-checkins at python.org
Thu Jul 29 02:29:00 CEST 2010
Author: victor.stinner
Date: Thu Jul 29 02:29:00 2010
New Revision: 83216
Log:
Update test_os.py according to my last changes on _Environ.__repr__()
Modified:
python/branches/py3k/Lib/test/test_os.py
Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py (original)
+++ python/branches/py3k/Lib/test/test_os.py Thu Jul 29 02:29:00 2010
@@ -423,7 +423,9 @@
"""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)
More information about the Python-checkins
mailing list