Kaydet (Commit) 611d9012 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

add recursive repr test

üst 6a55dc3b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment