mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fixup repr for dict_proxy objects.
This commit is contained in:
parent
470a41078b
commit
bf7a266074
3 changed files with 21 additions and 1 deletions
|
|
@ -4589,6 +4589,10 @@ class DictProxyTests(unittest.TestCase):
|
|||
pass
|
||||
self.C = C
|
||||
|
||||
def test_repr(self):
|
||||
self.assertIn('dict_proxy({', repr(vars(self.C)))
|
||||
self.assertIn("'meth':", repr(vars(self.C)))
|
||||
|
||||
def test_iter_keys(self):
|
||||
# Testing dict-proxy iterkeys...
|
||||
keys = [ key for key in self.C.__dict__.iterkeys() ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue