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

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

index 3005d0547fec0b36aab425dc7ccaa372bd911845..584726538c02ca7e82d41269aa6d06ce85238686 100644 (file)
@@ -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):