Commit d75f7385 authored by Stefan Behnel's avatar Stefan Behnel

test fix for Py<=2.5

parent 92cd57bf
...@@ -67,8 +67,6 @@ __doc__ = br""" ...@@ -67,8 +67,6 @@ __doc__ = br"""
True True
>>> null == u'\\x00' # unescaped by Python (required by doctest) >>> null == u'\\x00' # unescaped by Python (required by doctest)
True True
>>> wide_literal == u'\U00101234' # unescaped by Cython
True
>>> wide_literal == u'\\U00101234' # unescaped by Python >>> wide_literal == u'\\U00101234' # unescaped by Python
True True
""" """
...@@ -78,6 +76,13 @@ if sys.version_info[0] >= 3: ...@@ -78,6 +76,13 @@ if sys.version_info[0] >= 3:
else: else:
__doc__ = __doc__.replace(u" b'", u" '") __doc__ = __doc__.replace(u" b'", u" '")
if sys.version_info >= (2,6):
# this doesn't work well in older Python versions
__doc__ += u"""
>>> wide_literal == u'\U00101234' # unescaped by Cython
True
"""
sa = 'abc' sa = 'abc'
ua = u'abc' ua = u'abc'
......
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