Make it more clear that we are catching the exception raised by the $raise() function
This commit is contained in:
parent
18ce7bc02b
commit
ca68c5e805
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ def _lsum_callable(*args, **kwargs):
|
||||||
|
|
||||||
|
|
||||||
def _raises_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 = {
|
_test_callables = {
|
||||||
|
|
@ -280,7 +280,7 @@ class TestFuncParser(TestCase):
|
||||||
# It completed the first function call.
|
# It completed the first function call.
|
||||||
self.assertEqual("test 2 $raise()", ret)
|
self.assertEqual("test 2 $raise()", ret)
|
||||||
|
|
||||||
with self.assertRaises(funcparser.ParsingError):
|
with self.assertRaises(RuntimeError):
|
||||||
self.parser.parse(string, raise_errors=True)
|
self.parser.parse(string, raise_errors=True)
|
||||||
|
|
||||||
def test_parse_strip(self):
|
def test_parse_strip(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue