From f3933d4b98266249841d7ae37a84b2f181b9609d Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:13:01 +0100 Subject: [3.12] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112955) (cherry picked from commit 97cd45bfdbb6525457ba9d6824386f1e0eea6657) Co-authored-by: Anthony Sottile --- Lib/test/test_syntax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12