]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 11 Dec 2023 12:09:03 +0000 (13:09 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Dec 2023 12:09:03 +0000 (12:09 +0000)
(cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
Lib/test/test_syntax.py

index 88d117f641816d6467af528a258ed143709e27dd..050d084a97aed1b58152f8f3bd74bdf74e5ec008 100644 (file)
@@ -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):