(self)
| 325 | g2() |
| 326 | |
| 327 | def test_unhashable_closure(self): |
| 328 | def f(): |
| 329 | s = {1, 2} # mutable set is unhashable |
| 330 | |
| 331 | def g(): |
| 332 | return len(s) |
| 333 | |
| 334 | return g |
| 335 | |
| 336 | g = pickle_depickle(f(), protocol=self.protocol) |
| 337 | self.assertEqual(g(), 2) |
| 338 | |
| 339 | def test_class_no_firstlineno_deletion_(self): |
| 340 | # `__firstlineno__` is a new attribute of classes introduced in Python 3.13. |
nothing calls this directly
no test coverage detected