From ba5be370d4031c5f925a33b39e5f480ef256ada3 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 19 Sep 2020 14:29:59 +0000 Subject: [PATCH] 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. --- mudpy/tests/selftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- 2.11.0