summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-12-27 18:10:34 +0100
committerStefan Behnel <stefan_ml@behnel.de>2018-12-27 18:10:34 +0100
commitf375c87a3a44d76d6af88819b6c1636bfcd1500c (patch)
treeb53c5b20667c999463c3eec7f9c83f9c57166755
parentd7cd245f4bbe09dd65bfd22d9d11cb7d1120587c (diff)
downloadcython-f375c87a3a44d76d6af88819b6c1636bfcd1500c.tar.gz
Work around some PyPy test issues.
-rw-r--r--tests/run/c_int_types_T255.pyx17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/run/c_int_types_T255.pyx b/tests/run/c_int_types_T255.pyx
index eec5d5e10..a9224f500 100644
--- a/tests/run/c_int_types_T255.pyx
+++ b/tests/run/c_int_types_T255.pyx
@@ -685,14 +685,13 @@ class MyBadInt2(MyInt2):
def test_convert_pyint(x):
u"""
- >>> test_convert_pyint(None)
+ >>> test_convert_pyint(None) # doctest: +ELLIPSIS
Traceback (most recent call last):
- ...
- TypeError: an integer is required
- >>> test_convert_pyint("123")
+ TypeError:... int...
+ >>> test_convert_pyint("123") # doctest: +ELLIPSIS
Traceback (most recent call last):
...
- TypeError: an integer is required
+ TypeError:... int...
>>> test_convert_pyint(MyBadInt(0)) #doctest: +ELLIPSIS
Traceback (most recent call last):
...
@@ -733,14 +732,14 @@ class MyBadLong(MyLong):
def test_convert_pylong(x):
u"""
- >>> test_convert_pylong(None)
+ >>> test_convert_pylong(None) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
- TypeError: an integer is required
- >>> test_convert_pylong("123")
+ TypeError:... int...
+ >>> test_convert_pylong("123") # doctest: +ELLIPSIS
Traceback (most recent call last):
...
- TypeError: an integer is required
+ TypeError:... int...
>>> test_convert_pylong(MyBadLong(0)) #doctest: +ELLIPSIS
Traceback (most recent call last):
...