From ca68c5e8057e3ac9d71717a26cf7542d85d7f7d4 Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sun, 9 Oct 2022 09:53:24 -0700 Subject: [PATCH] Make it more clear that we are catching the exception raised by the $raise() function --- evennia/utils/tests/test_funcparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/utils/tests/test_funcparser.py b/evennia/utils/tests/test_funcparser.py index 7391b97674..3250e8b477 100644 --- a/evennia/utils/tests/test_funcparser.py +++ b/evennia/utils/tests/test_funcparser.py @@ -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):