(self)
| 255 | ip.run_line_magic("run", fname) |
| 256 | |
| 257 | def test_non_syntaxerror(self): |
| 258 | # SyntaxTB may be called with an error other than a SyntaxError |
| 259 | # See e.g. gh-4361 |
| 260 | try: |
| 261 | raise ValueError("QWERTY") |
| 262 | except ValueError: |
| 263 | with tt.AssertPrints("QWERTY"): |
| 264 | ip.showsyntaxerror() |
| 265 | |
| 266 | def test_syntaxerror_subclass_without_text(self): |
| 267 | # SyntaxError subclasses may leave .text set to None, e.g. |
nothing calls this directly
no test coverage detected