From 76df995ba69ef5d790462856b3edbd42b28b906a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 4 Mar 2021 17:02:02 -0500 Subject: raw string literals are next to godliness Invalid escape sequences are deprecated and will be removed from a future version of python. Use r"" to define them so they remain readable. --- run_unittests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index 6cdcc8c..0d42ced 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5893,7 +5893,7 @@ class FailureTests(BasePlatformTests): def test_error_func(self): self.assertMesonRaises("error('a', 'b', ['c', ['d', {'e': 'f'}]], 'g')", - "Problem encountered: a b \['c', \['d', {'e' : 'f'}\]\] g") + r"Problem encountered: a b \['c', \['d', {'e' : 'f'}\]\] g") @unittest.skipUnless(is_windows() or is_cygwin(), "requires Windows (or Windows via Cygwin)") -- cgit v1.1