add recursive repr test
This commit is contained in:
parent
6a55dc3b4a
commit
611d901289
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue