Commit 8c8a4ee4 authored by Stefan Behnel's avatar Stefan Behnel

test fixes for PyPy

parent 8e4a119b
...@@ -69,7 +69,7 @@ def make_new_none(type t=None): ...@@ -69,7 +69,7 @@ def make_new_none(type t=None):
""" """
>>> make_new_none() # doctest: +ELLIPSIS >>> make_new_none() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: ...__new__(X): X is not a type object (NoneType) TypeError: ... is not a type object (NoneType)
""" """
m = t.__new__(t) m = t.__new__(t)
return m return m
...@@ -122,7 +122,7 @@ def make_new_none_typed(tuple t=None): ...@@ -122,7 +122,7 @@ def make_new_none_typed(tuple t=None):
""" """
>>> make_new_none_typed() # doctest: +ELLIPSIS >>> make_new_none_typed() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: ...__new__(X): X is not a type object (NoneType) TypeError: ... is not a type object (NoneType)
""" """
m = t.__new__(t) m = t.__new__(t)
return m return m
...@@ -133,7 +133,7 @@ def make_new_untyped(t): ...@@ -133,7 +133,7 @@ def make_new_untyped(t):
""" """
>>> make_new_untyped(None) # doctest: +ELLIPSIS >>> make_new_untyped(None) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: ...__new__(X): X is not a type object (NoneType) TypeError: ... is not a type object (NoneType)
""" """
m = t.__new__(t) m = t.__new__(t)
return m 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