aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:02:02 -0500
committerEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:09:00 -0500
commit76df995ba69ef5d790462856b3edbd42b28b906a (patch)
tree1acab97d1dc34ffa16d0fb723346675184f649c3 /run_unittests.py
parentfb595294587a70ae67622b5c03a9d3e46a37d4fa (diff)
downloadmeson-76df995ba69ef5d790462856b3edbd42b28b906a.zip
meson-76df995ba69ef5d790462856b3edbd42b28b906a.tar.gz
meson-76df995ba69ef5d790462856b3edbd42b28b906a.tar.bz2
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.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
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)")