summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-05-20 02:39:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-05-20 02:39:46 (GMT)
commitd2cef8a2048954adef759a9eb01e06b1cb616bf5 (patch)
treeb5ba9b334e956b2368545060661fe5699be95302
parenta369923cab024889e638db781b7495533d1a1e77 (diff)
parent611d901289c85934349e5cb1f7d01f0caa194d2a (diff)
downloadcpython-d2cef8a2048954adef759a9eb01e06b1cb616bf5.zip
cpython-d2cef8a2048954adef759a9eb01e06b1cb616bf5.tar.gz
cpython-d2cef8a2048954adef759a9eb01e06b1cb616bf5.tar.bz2
merge 3.3
-rw-r--r--Lib/test/test_dictviews.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_dictviews.py b/Lib/test/test_dictviews.py
index 4c04079..ac8bfe6 100644
--- a/Lib/test/test_dictviews.py
+++ b/Lib/test/test_dictviews.py
@@ -179,6 +179,11 @@ class DictSetTest(unittest.TestCase):
self.assertTrue(de.items().isdisjoint(de.items()))
self.assertTrue(de.items().isdisjoint([1]))
+ def test_recursive_repr(self):
+ d = {}
+ d[42] = d.values()
+ self.assertRaises(RuntimeError, repr, d)
+
def test_main():
support.run_unittest(DictSetTest)