Commit f375c87a authored by Stefan Behnel's avatar Stefan Behnel

Work around some PyPy test issues.

parent d7cd245f
...@@ -685,14 +685,13 @@ class MyBadInt2(MyInt2): ...@@ -685,14 +685,13 @@ class MyBadInt2(MyInt2):
def test_convert_pyint(x): def test_convert_pyint(x):
u""" u"""
>>> test_convert_pyint(None) >>> test_convert_pyint(None) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... TypeError:... int...
TypeError: an integer is required >>> test_convert_pyint("123") # doctest: +ELLIPSIS
>>> test_convert_pyint("123")
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: an integer is required TypeError:... int...
>>> test_convert_pyint(MyBadInt(0)) #doctest: +ELLIPSIS >>> test_convert_pyint(MyBadInt(0)) #doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
...@@ -733,14 +732,14 @@ class MyBadLong(MyLong): ...@@ -733,14 +732,14 @@ class MyBadLong(MyLong):
def test_convert_pylong(x): def test_convert_pylong(x):
u""" u"""
>>> test_convert_pylong(None) >>> test_convert_pylong(None) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: an integer is required TypeError:... int...
>>> test_convert_pylong("123") >>> test_convert_pylong("123") # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: an integer is required TypeError:... int...
>>> test_convert_pylong(MyBadLong(0)) #doctest: +ELLIPSIS >>> test_convert_pylong(MyBadLong(0)) #doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
......
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