(self)
| 244 | ip.magic("run " + fname) |
| 245 | |
| 246 | def test_non_syntaxerror(self): |
| 247 | # SyntaxTB may be called with an error other than a SyntaxError |
| 248 | # See e.g. gh-4361 |
| 249 | try: |
| 250 | raise ValueError('QWERTY') |
| 251 | except ValueError: |
| 252 | with tt.AssertPrints('QWERTY'): |
| 253 | ip.showsyntaxerror() |
| 254 | |
| 255 | import sys |
| 256 | if sys.version_info < (3,9): |
nothing calls this directly
no test coverage detected