fixed PY-4293 Conditional expression in return clause is not flagged as incompatible with Python 2.4

removed duplicated tests
This commit is contained in:
Ekaterina Tuzova
2011-08-19 15:24:19 +04:00
parent 56939f711f
commit 859d698ad3
8 changed files with 32 additions and 109 deletions
@@ -1,5 +1,5 @@
# PY-2792
<warning descr="Python version 2.4 doesn't support this syntax.">x = True if condition else False</warning>
x = <warning descr="Python version 2.4 doesn't support this syntax.">True if condition else False</warning>
def foo(): # PY-2796
<warning descr="Python version 2.4 doesn't support this syntax. In Python <= 2.4, yield was a statement; it didn't return any value.">a = (yield 1)</warning>