From: Jeremy Stanley Date: Sun, 15 Jul 2018 19:06:22 +0000 (+0000) Subject: Fix deprecated regex pattern syntax in selftests X-Git-Tag: 0.0.1~68 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=50f5fe88e51faa1b4882d2a33e51bd4e44042ef3;p=mudpy.git 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. --- 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 = (