Commit 98a24298 authored by Stefan Behnel's avatar Stefan Behnel

make an old test from 'broken' directory usable

--HG--
rename : tests/broken/onelinesuite.pyx => tests/run/onelinesuite.py
parent b3f79af2
if x: y = 42; z = 88
def f(): return 17
# mode: run
# tag: syntax
"""
>>> y
Traceback (most recent call last):
NameError: name 'y' is not defined
>>> z
Traceback (most recent call last):
NameError: name 'z' is not defined
>>> f()
17
"""
x = False
if x: y = 42; z = 88
def f(): return 17
def suite_in_func(x):
"""
>>> suite_in_func(True)
(42, 88)
>>> suite_in_func(False)
(0, 0)
"""
y = z = 0
if x: y = 42; z = 88
return y, z
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment