From f40f807814f0d5f29d97fb94d8d4cd35f03bbd34 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 10 Aug 2008 22:49:49 +0200 Subject: [PATCH] Py3 test fixes --- tests/run/strescapes.pyx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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', -- 2.26.2