From c4404f52a2bef48c875e8a9e888be6727852ba39 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 10 Dec 2023 15:58:27 -0500 Subject: [PATCH 1/2] fix Syntax warning in test_syntax.py the irony --- 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 99433df73387d0..c9388f3ee70079 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2336,7 +2336,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, "'(' was never closed") def test_error_string_literal(self): From 1571d50cac28d06d2c9d3aa8c6c58e720cddf3e0 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 10 Dec 2023 16:21:53 -0500 Subject: [PATCH 2/2] this is actually a regex! --- 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 c9388f3ee70079..ece1366076798c 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2336,7 +2336,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):