MCPcopy Create free account
hub / github.com/bpython/bpython / test_catches_syntax_error

Method test_catches_syntax_error

bpython/test/test_autocomplete.py:21–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19
20class TestSafeEval(unittest.TestCase):
21 def test_catches_syntax_error(self):
22 with self.assertRaises(autocomplete.EvaluationError):
23 autocomplete.safe_eval("1re", {})
24
25
26class TestFormatters(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected