Commit 3f8f6830 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test case fix

parent 72fa7588
......@@ -23,13 +23,16 @@ __doc__ = u"""
"""
import sys
if sys.version_info[0] < 3:
__doc__ = __doc__.replace(" b'", " '")
IS_PY3 = sys.version_info[0] >= 3
if IS_PY3:
__doc__ = __doc__.replace(u" u'", u" '")
else:
__doc__ = __doc__.replace(" u'", " '")
__doc__ = __doc__.replace(u" b'", u" '")
def test_str(n):
if IS_PY3:
return bytes(["abcd"[n]])
else:
return "abcd"[n]
def test_unicode_ascii(n):
......
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