(self)
| 117 | self.assertEqual(d2, d1) |
| 118 | |
| 119 | def test_keyerror_without_factory(self): |
| 120 | d1 = defaultdict() |
| 121 | try: |
| 122 | d1[(1,)] |
| 123 | except KeyError as err: |
| 124 | self.assertEqual(err.args[0], (1,)) |
| 125 | else: |
| 126 | self.fail("expected KeyError") |
| 127 | |
| 128 | def test_recursive_repr(self): |
| 129 | # Issue2045: stack overflow when default_factory is a bound method |
nothing calls this directly
no test coverage detected