Make it more clear that we are catching the exception raised by the $raise() function

This commit is contained in:
Travis Briggs 2022-10-09 09:53:24 -07:00
parent 18ce7bc02b
commit ca68c5e805

View file

@ -79,7 +79,7 @@ def _lsum_callable(*args, **kwargs):
def _raises_callable(*args, **kwargs):
raise funcparser.ParsingError("Test exception raised by test callable")
raise RuntimeError("Test exception raised by test callable")
_test_callables = {
@ -280,7 +280,7 @@ class TestFuncParser(TestCase):
# It completed the first function call.
self.assertEqual("test 2 $raise()", ret)
with self.assertRaises(funcparser.ParsingError):
with self.assertRaises(RuntimeError):
self.parser.parse(string, raise_errors=True)
def test_parse_strip(self):