Skip to content

Commit

Permalink
Fix a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Jul 23, 2020
1 parent f52103f commit 3b263f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/failing_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def build_nested(code, depth, base='def f():\n'):
'(yield) += 1',
'(yield from x) += 1',
'(x if x else y) += 1',
'class X(base for base in bases): pass',
'a() += 1',
'a + b += 1',
'+a += 1',
Expand Down Expand Up @@ -337,6 +336,12 @@ def z():
'(*[1], 2)',
]

if sys.version_info[:2] >= (3, 7):
# This is somehow ok in previous versions.
FAILING_EXAMPLES += [
'class X(base for base in bases): pass',
]

if sys.version_info[:2] < (3, 8):
FAILING_EXAMPLES += [
# Python/compile.c
Expand Down

0 comments on commit 3b263f0

Please sign in to comment.