From 449fdfca9642536a62ab0ac40cf68e62209ca4bb Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:09:03 +0100 Subject: [PATCH] [3.11] Fix SyntaxWarning in test_syntax.py (GH-112944) (GH-112956) (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 88d117f64181..050d084a97ae 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -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): -- 2.47.3