From: Stefan Behnel Date: Sat, 17 Jul 2010 14:17:27 +0000 (+0200) Subject: test fix for Py<=2.5 X-Git-Tag: 0.13.beta0~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35aaf64c4a846287506f701167dc06240032acf2;p=cython.git test fix for Py<=2.5 --- diff --git a/tests/run/inop.pyx b/tests/run/inop.pyx index 33c8c15b..f9fd93d3 100644 --- a/tests/run/inop.pyx +++ b/tests/run/inop.pyx @@ -103,9 +103,9 @@ def m_bytes(char a, bytes bytes_string): 1 >>> m_bytes(ord('X'), py_bytes_string) 0 - >>> 'f'.encode('ASCII') in None + >>> 'f'.encode('ASCII') in None # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: argument of type 'NoneType' is not iterable + TypeError: ...iterable... >>> m_bytes(ord('f'), None) Traceback (most recent call last): TypeError: argument of type 'NoneType' is not iterable @@ -121,9 +121,9 @@ def m_bytes_unsigned(unsigned char a, bytes bytes_string): 1 >>> m_bytes(ord('X'), py_bytes_string) 0 - >>> 'f'.encode('ASCII') in None + >>> 'f'.encode('ASCII') in None # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: argument of type 'NoneType' is not iterable + TypeError: ...iterable... >>> m_bytes(ord('f'), None) Traceback (most recent call last): TypeError: argument of type 'NoneType' is not iterable @@ -168,9 +168,10 @@ def m_unicode(Py_UNICODE a, unicode unicode_string): 0 >>> m_unicode(ord(py_klingon_character), py_unicode_string) 1 - >>> 'f' in None + + >>> 'f' in None # doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: argument of type 'NoneType' is not iterable + TypeError: ...iterable... >>> m_unicode(ord('f'), None) Traceback (most recent call last): TypeError: argument of type 'NoneType' is not iterable