From 9f088336b268dfe9011a7cb550f4e488ccd7e8f5 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Thu, 11 Jan 2024 14:25:07 +0300 Subject: =?UTF-8?q?gh-113932:=20assert=20``SyntaxWarning``=20in=20test=5Fc?= =?UTF-8?q?ompile.TestSpecifics.test=5F=E2=80=A6=20(#113933)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/test/test_compile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 7850977..45fd309 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -450,7 +450,8 @@ class TestSpecifics(unittest.TestCase): def test_condition_expression_with_redundant_comparisons_compiles(self): # See gh-113054 - compile('if 9<9<9and 9or 9:9', '', 'exec') + with self.assertWarns(SyntaxWarning): + compile('if 9<9<9and 9or 9:9', '', 'exec') def test_dead_code_with_except_handler_compiles(self): compile(textwrap.dedent(""" -- cgit v0.12