summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-09-10 22:18:16 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-09-10 22:18:16 (GMT)
commit3d75d0cc9244a8c2c1f31deb47f097409d36fefb (patch)
tree0e25d20474af98446aafe31e191a691305032771 /Lib/test/test_os.py
parent00ebe2cdc46ea759209ccea1c96d6b75fd3c07c5 (diff)
downloadcpython-3d75d0cc9244a8c2c1f31deb47f097409d36fefb.zip
cpython-3d75d0cc9244a8c2c1f31deb47f097409d36fefb.tar.gz
cpython-3d75d0cc9244a8c2c1f31deb47f097409d36fefb.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index f42290f..7ce9959 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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())))