]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix SyntaxWarning in test_syntax.py (GH-112944)
authorAnthony Sottile <asottile@umich.edu>
Mon, 11 Dec 2023 11:48:52 +0000 (06:48 -0500)
committerGitHub <noreply@github.com>
Mon, 11 Dec 2023 11:48:52 +0000 (11:48 +0000)
Lib/test/test_syntax.py

index 99433df73387d0f6e9ad9f71d3d27a88b8f8a4ea..ece1366076798c99a51347b87ad951fbc500fd40 100644 (file)
@@ -2336,7 +2336,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):