Commit 7e59e591 authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent ac14abe9
......@@ -2,6 +2,7 @@
cimport cython
@cython.test_assert_path_exists(
'//RaiseStatNode',
'//RaiseStatNode[@builtin_exc_name = "MemoryError"]')
......@@ -13,6 +14,7 @@ def raise_me_type():
"""
raise MemoryError
@cython.test_assert_path_exists(
'//RaiseStatNode',
'//RaiseStatNode[@builtin_exc_name = "MemoryError"]')
......@@ -24,6 +26,7 @@ def raise_me_instance():
"""
raise MemoryError()
def raise_me_instance_value():
"""
>>> raise_me_instance_value()
......@@ -32,3 +35,13 @@ def raise_me_instance_value():
MemoryError: oom
"""
raise MemoryError("oom")
def raise_me_instance_value_separate():
"""
>>> raise_me_instance_value_separate()
Traceback (most recent call last):
...
MemoryError: oom
"""
raise MemoryError, "oom"
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