We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SyntaxWarning
1 parent ec23e90 commit 9f08833Copy full SHA for 9f08833
Lib/test/test_compile.py
@@ -450,7 +450,8 @@ def test_condition_expression_with_dead_blocks_compiles(self):
450
451
def test_condition_expression_with_redundant_comparisons_compiles(self):
452
# See gh-113054
453
- compile('if 9<9<9and 9or 9:9', '<eval>', 'exec')
+ with self.assertWarns(SyntaxWarning):
454
+ compile('if 9<9<9and 9or 9:9', '<eval>', 'exec')
455
456
def test_dead_code_with_except_handler_compiles(self):
457
compile(textwrap.dedent("""
0 commit comments