From 3613bc0ed0fd60ec8192ae93fc40787caeb3ab2e Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 11 Dec 2023 06:48:52 -0500 Subject: [PATCH] Fix SyntaxWarning in test_syntax.py (GH-112944) (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 3005d0547fec0b..584726538c02ca 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2298,7 +2298,7 @@ def test_error_parenthesis(self): # 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):