summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-04-15 22:16:30 (GMT)
commit0db176f8f6cfaf3277e6ef41d92b09a01b263f27 (patch)
tree9c881aaab525015223b7219c8fa12910e66354e9 /Lib/test/test_descr.py
parent8a1d04c64372d4706572671a21ff9d3e4a6374ca (diff)
downloadcpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.zip
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.gz
cpython-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.bz2
Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 3051e57..c0c7414 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4574,11 +4574,11 @@ class DictProxyTests(unittest.TestCase):
self.assertEqual(type(C.__dict__), type(B.__dict__))
def test_repr(self):
- # Testing dict_proxy.__repr__.
+ # Testing mappingproxy.__repr__.
# We can't blindly compare with the repr of another dict as ordering
# of keys and values is arbitrary and may differ.
r = repr(self.C.__dict__)
- self.assertTrue(r.startswith('dict_proxy('), r)
+ self.assertTrue(r.startswith('mappingproxy('), r)
self.assertTrue(r.endswith(')'), r)
for k, v in self.C.__dict__.items():
self.assertIn('{!r}: {!r}'.format(k, v), r)