From 50f5fe88e51faa1b4882d2a33e51bd4e44042ef3 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sun, 15 Jul 2018 19:06:22 +0000 Subject: [PATCH] Fix deprecated regex pattern syntax in selftests A deprecated (non-raw with escape sequences) regular expression string went unnoticed in a recent commit, so this change fixes it to be ready for eventual Python 3.8. --- 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 fa96ad0..bc87885 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -186,7 +186,7 @@ test_reload = ( r".* User admin reloaded the world\.", "show element account.admin"), (2, 'These are the properties of the "account.admin" element.*' - " \x1b\[32mpasshash:\r\n\x1b\[31m\$.*> ", ""), + r' \x1b\[32mpasshash:\r\n\x1b\[31m\$.*> ', ""), ) test_set_facet = ( -- 2.11.0