(self)
| 3235 | self.check_note(CustomNew, "") |
| 3236 | |
| 3237 | def test_instance_attribute(self): |
| 3238 | msg = "This should be noted" |
| 3239 | exc = RuntimeError(msg) |
| 3240 | exc.attr = 1 |
| 3241 | self.check_note(exc, "^{}$".format(msg)) |
| 3242 | |
| 3243 | def test_non_str_arg(self): |
| 3244 | self.check_note(RuntimeError(1), "1") |
nothing calls this directly
no test coverage detected