MCPcopy Index your code
hub / github.com/ipython/ipython / test_non_syntaxerror

Method test_non_syntaxerror

tests/test_ultratb.py:257–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

showsyntaxerrorMethod · 0.80

Tested by

no test coverage detected