(self)
| 3224 | self.check_note(CustomNew, "") |
| 3225 | |
| 3226 | def test_instance_attribute(self): |
| 3227 | msg = "This should be noted" |
| 3228 | exc = RuntimeError(msg) |
| 3229 | exc.attr = 1 |
| 3230 | self.check_note(exc, "^{}$".format(msg)) |
| 3231 | |
| 3232 | def test_non_str_arg(self): |
| 3233 | self.check_note(RuntimeError(1), "1") |
nothing calls this directly
no test coverage detected