MCPcopy Create free account
hub / github.com/ipython/ipython / test_non_syntaxerror

Method test_non_syntaxerror

IPython/core/tests/test_ultratb.py:246–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
255import sys
256if sys.version_info < (3,9):

Callers

nothing calls this directly

Calls 1

showsyntaxerrorMethod · 0.80

Tested by

no test coverage detected