Commit 1593a824 authored by Stefan Behnel's avatar Stefan Behnel

more test fixes

parent 58e30448
......@@ -120,7 +120,7 @@ def make_new_args(type t1=None, type t2=None):
@cython.test_fail_if_path_exists('//PythonCapiCallNode')
def make_new_none_typed(tuple t=None):
"""
>>> isinstance(make_new_none(), MyType)
>>> make_new_none_typed()
Traceback (most recent call last):
TypeError: object.__new__(X): X is not a type object (NoneType)
"""
......@@ -131,9 +131,9 @@ def make_new_none_typed(tuple t=None):
@cython.test_fail_if_path_exists('//PythonCapiCallNode')
def make_new_untyped(t):
"""
>>> make_new_untyped(None)
>>> make_new_untyped(None) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: object.__new__(X): X is not a type object (NoneType)
TypeError: ...__new__(X): X is not a type object (NoneType)
"""
m = t.__new__(t)
return m
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