Commit f714831a authored by Stefan Behnel's avatar Stefan Behnel

new test cases from Pyrex

parent 839a5019
if x:
def h():
pass
_ERRORS = u"""
/Local/Projects/D/Pyrex/Source/Tests/Errors1/se_conddef.pyx:2:1: def statement not allowed here
"""
def f():
a = b # space space
c = d # tab
_ERRORS = u"""
/Local/Projects/D/Pyrex/Source/Tests/Errors1/se_mixtabspace.pyx:3:0: Mixed use of tabs and spaces
"""
def f(obj1a, obj2a, obj3a, obj1b, obj2b, obj3b, obj4b):
obj1a, (obj2a, obj3a) = obj1b, (obj2b, obj3b, obj4b)
_ERRORS = u"""
2:9: Unpacking sequence of wrong size (expected 2, got 3)
"""
def f():
def g():
pass
_ERRORS = u"""
/Local/Projects/D/Pyrex/Source/Tests/Errors1/se_nestdef.pyx:2:1: def statement not allowed here
"""
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