From: Stefan Behnel Date: Sun, 10 Aug 2008 20:49:49 +0000 (+0200) Subject: Py3 test fixes X-Git-Tag: 0.9.8.1~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f40f807814f0d5f29d97fb94d8d4cd35f03bbd34;p=cython.git Py3 test fixes --- diff --git a/tests/run/strescapes.pyx b/tests/run/strescapes.pyx index a88df304..51eebfb7 100644 --- a/tests/run/strescapes.pyx +++ b/tests/run/strescapes.pyx @@ -1,10 +1,10 @@ __doc__ = u""" >>> py_strings = [ -... '\\x1234', -... '\\x0A12\\x0C34', -... '\\x0A57', -... 'abc\\x12def', +... b'\\x1234', +... b'\\x0A12\\x0C34', +... b'\\x0A57', +... b'abc\\x12def', ... u'\\u1234', ... u'\\U00041234', ... b'\\u1234', @@ -18,15 +18,15 @@ __doc__ = u""" import sys if sys.version_info[0] < 3: - __doc__ = __doc__.replace(" b'", " '") + __doc__ = __doc__.replace(u" b'", u" '") else: - __doc__ = __doc__.replace(" u'", " '") + __doc__ = __doc__.replace(u" u'", u" '") c_strings = [ -'\x1234', -'\x0A12\x0C34', -'\x0A57', -'abc\x12def', +b'\x1234', +b'\x0A12\x0C34', +b'\x0A57', +b'abc\x12def', u'\u1234', u'\U00041234', b'\u1234',