mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
add recursive repr test
This commit is contained in:
parent
6a55dc3b4a
commit
611d901289
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue