Commit 846ce05e authored by Stefan Behnel's avatar Stefan Behnel

Adapt some exception messages for PyPy.

parent a35bd75c
...@@ -224,10 +224,10 @@ def call_g_positional(): ...@@ -224,10 +224,10 @@ def call_g_positional():
def call_nonseq_positional1(): def call_nonseq_positional1():
""" """
>>> call_nonseq_positional1() >>> call_nonseq_positional1() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: 'Nothing' object is not iterable TypeError: ...Nothing...
# TypeError: g() argument after * must be a sequence, not Nothing # TypeError: g() argument after * must be a sequence, not Nothing
""" """
...@@ -237,10 +237,10 @@ def call_nonseq_positional1(): ...@@ -237,10 +237,10 @@ def call_nonseq_positional1():
def call_nonseq_positional2(): def call_nonseq_positional2():
""" """
>>> call_nonseq_positional2() >>> call_nonseq_positional2() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: 'Nothing' object is not iterable TypeError: ...Nothing...
# TypeError: g() argument after * must be a sequence, not Nothing # TypeError: g() argument after * must be a sequence, not Nothing
""" """
......
...@@ -117,9 +117,9 @@ def tuple_of_args_tuple(*args): ...@@ -117,9 +117,9 @@ def tuple_of_args_tuple(*args):
@cython.test_fail_if_path_exists('//SimpleCallNode//SimpleCallNode') @cython.test_fail_if_path_exists('//SimpleCallNode//SimpleCallNode')
def tuple_of_object(ob): def tuple_of_object(ob):
""" """
>>> tuple(type(1)) >>> tuple(type(1)) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: 'type' object is not iterable TypeError: ...type...
>>> sorted(tuple(set([1, 2, 3]))) >>> sorted(tuple(set([1, 2, 3])))
[1, 2, 3] [1, 2, 3]
""" """
......
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