From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:09:03 +0000 (+0100) Subject: [3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956) X-Git-Tag: v3.11.8~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=449fdfca9642536a62ab0ac40cf68e62209ca4bb;p=thirdparty%2FPython%2Fcpython.git [3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956) (cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657) Co-authored-by: Anthony Sottile --- diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 88d117f64181..050d084a97ae 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2145,7 +2145,7 @@ func( # Examples with dencodings s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5' - self._check_error(s, "'\(' was never closed") + self._check_error(s, r"'\(' was never closed") def test_error_string_literal(self):