(self)
| 603 | self.assertEqual(e.b, 2) |
| 604 | |
| 605 | def test_invalid_setstate(self): |
| 606 | e = Exception(42) |
| 607 | with self.assertRaisesRegex(TypeError, "state is not a dictionary"): |
| 608 | e.__setstate__(42) |
| 609 | |
| 610 | def test_notes(self): |
| 611 | for e in [BaseException(1), Exception(2), ValueError(3)]: |
nothing calls this directly
no test coverage detected