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

extend test

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