mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-113932: assert `SyntaxWarning` in test_compile.TestSpecifics.test_… (#113933)
This commit is contained in:
parent
ec23e90082
commit
9f088336b2
1 changed files with 2 additions and 1 deletions
|
|
@ -450,7 +450,8 @@ def test_condition_expression_with_dead_blocks_compiles(self):
|
|||
|
||||
def test_condition_expression_with_redundant_comparisons_compiles(self):
|
||||
# See gh-113054
|
||||
compile('if 9<9<9and 9or 9:9', '<eval>', 'exec')
|
||||
with self.assertWarns(SyntaxWarning):
|
||||
compile('if 9<9<9and 9or 9:9', '<eval>', 'exec')
|
||||
|
||||
def test_dead_code_with_except_handler_compiles(self):
|
||||
compile(textwrap.dedent("""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue