Commit 47329982 authored by Stefan Behnel's avatar Stefan Behnel

merged in latest cython-devel

parents fda65d47 07567777
...@@ -197,10 +197,8 @@ def m_unicode_literal(Py_UNICODE a): ...@@ -197,10 +197,8 @@ def m_unicode_literal(Py_UNICODE a):
cdef unicode wide_unicode_character = u'\U0010FEDC' cdef unicode wide_unicode_character = u'\U0010FEDC'
py_wide_unicode_character = wide_unicode_character py_wide_unicode_character = wide_unicode_character
cdef unicode wide_unicode_character_surrogate1 = u'\uDBFF' wide_unicode_character_surrogate1 = 0xDBFF
cdef unicode wide_unicode_character_surrogate2 = u'\uDEDC' wide_unicode_character_surrogate2 = 0xDEDC
py_wide_unicode_character_surrogate1 = wide_unicode_character_surrogate1
py_wide_unicode_character_surrogate2 = wide_unicode_character_surrogate2
@cython.test_fail_if_path_exists("//SwitchStatNode") @cython.test_fail_if_path_exists("//SwitchStatNode")
@cython.test_assert_path_exists("//PrimaryCmpNode") @cython.test_assert_path_exists("//PrimaryCmpNode")
...@@ -212,8 +210,8 @@ def m_wide_unicode_literal(Py_UNICODE a): ...@@ -212,8 +210,8 @@ def m_wide_unicode_literal(Py_UNICODE a):
0 0
>>> import sys >>> import sys
>>> if sys.maxunicode == 65535: >>> if sys.maxunicode == 65535:
... m_wide_unicode_literal(ord(py_wide_unicode_character_surrogate1)) ... m_wide_unicode_literal(py_wide_unicode_character_surrogate1)
... m_wide_unicode_literal(ord(py_wide_unicode_character_surrogate2)) ... m_wide_unicode_literal(py_wide_unicode_character_surrogate2)
... else: ... else:
... m_wide_unicode_literal(ord(py_wide_unicode_character)) ... m_wide_unicode_literal(ord(py_wide_unicode_character))
... 1 ... 1
......
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