From: Jeremy Stanley Date: Sat, 19 Sep 2020 14:29:59 +0000 (+0000) Subject: Handle early wrapping in test_show_result X-Git-Tag: 0.2.1~2 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=ba5be370d4031c5f925a33b39e5f480ef256ada3 Handle early wrapping in test_show_result When showing a Python module object, the included file path can easily be long enough to wrap to the next line. Allow for line breaks immediately before it in the test_show_result test where it sometimes surfaces. --- diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index f576532..6e130c3 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -336,7 +336,7 @@ test_show_result = ( (2, r"\r\n838102050\r\n.*> ", "show result 1/0"), (2, r"Your expression raised an exception.*division by zero.*> ", "show result mudpy"), - (2, r" ", "show result re"), + (2, r" ", "show result re"), (2, r"Your expression raised an exception.*name 're' is not defined.*> ", "show result universe"), (2, r" ", "show result actor"),