From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:13:01 +0000 (+0100) Subject: [3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955) X-Git-Tag: v3.12.2~344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3933d4b98266249841d7ae37a84b2f181b9609d;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955) (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 3005d0547fec..584726538c02 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2298,7 +2298,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):