From: Stefan Behnel Date: Fri, 16 Jul 2010 18:34:55 +0000 (+0200) Subject: test fix X-Git-Tag: 0.13.beta0~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=07567777773b7cc35366a8c93222cb7b17b8384e;p=cython.git test fix --- diff --git a/tests/run/inop.pyx b/tests/run/inop.pyx index ff18ef7a..33c8c15b 100644 --- a/tests/run/inop.pyx +++ b/tests/run/inop.pyx @@ -197,10 +197,8 @@ def m_unicode_literal(Py_UNICODE a): cdef unicode wide_unicode_character = u'\U0010FEDC' py_wide_unicode_character = wide_unicode_character -cdef unicode wide_unicode_character_surrogate1 = u'\uDBFF' -cdef unicode wide_unicode_character_surrogate2 = u'\uDEDC' -py_wide_unicode_character_surrogate1 = wide_unicode_character_surrogate1 -py_wide_unicode_character_surrogate2 = wide_unicode_character_surrogate2 +wide_unicode_character_surrogate1 = 0xDBFF +wide_unicode_character_surrogate2 = 0xDEDC @cython.test_fail_if_path_exists("//SwitchStatNode") @cython.test_assert_path_exists("//PrimaryCmpNode") @@ -212,8 +210,8 @@ def m_wide_unicode_literal(Py_UNICODE a): 0 >>> import sys >>> if sys.maxunicode == 65535: - ... m_wide_unicode_literal(ord(py_wide_unicode_character_surrogate1)) - ... m_wide_unicode_literal(ord(py_wide_unicode_character_surrogate2)) + ... m_wide_unicode_literal(py_wide_unicode_character_surrogate1) + ... m_wide_unicode_literal(py_wide_unicode_character_surrogate2) ... else: ... m_wide_unicode_literal(ord(py_wide_unicode_character)) ... 1