summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-11 12:13:01 (GMT)
committerGitHub <noreply@github.com>2023-12-11 12:13:01 (GMT)
commitf3933d4b98266249841d7ae37a84b2f181b9609d (patch)
treebeb1c4c87ffb06c94643d62936d70e4c5cd5587c
parent78a5010a4e999898867fa97c2caed740b19613dc (diff)
downloadcpython-f3933d4b98266249841d7ae37a84b2f181b9609d.zip
cpython-f3933d4b98266249841d7ae37a84b2f181b9609d.tar.gz
cpython-f3933d4b98266249841d7ae37a84b2f181b9609d.tar.bz2
[3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955)
(cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657) Co-authored-by: Anthony Sottile <asottile@umich.edu>
-rw-r--r--Lib/test/test_syntax.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 3005d05..5847265 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):