mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #8603: Environ.data is now protected -> Environ._data
os.environ.data was a str dict in Python 3.1. In Python 3.2 on UNIX/BSD, os.environ.data is now a bytes dict: mark it as protected to avoid confusion.
This commit is contained in:
parent
00ebe2cdc4
commit
3d75d0cc92
2 changed files with 8 additions and 9 deletions
|
|
@ -422,7 +422,6 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
|
|||
def test___repr__(self):
|
||||
"""Check that the repr() of os.environ looks like environ({...})."""
|
||||
env = os.environ
|
||||
self.assertTrue(isinstance(env.data, dict))
|
||||
self.assertEqual(repr(env), 'environ({{{}}})'.format(', '.join(
|
||||
'{!r}: {!r}'.format(key, value)
|
||||
for key, value in env.items())))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue