Commit 9518368e authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fix

parent a668f224
...@@ -10,12 +10,12 @@ rangeabc ...@@ -10,12 +10,12 @@ rangeabc
def test_file_py(file): def test_file_py(file):
assert isinstance(file, str), \ assert isinstance(file, (str, unicode)), \
u"not a string, found '%s' instead" % file.__class__.__name__ u"not a string, found '%s' instead" % file.__class__.__name__
return file return file
cdef test_file_c(file): cdef test_file_c(file):
assert isinstance(file, str), \ assert isinstance(file, (str, unicode)), \
u"not a string, found '%s' instead" % file.__class__.__name__ u"not a string, found '%s' instead" % file.__class__.__name__
return u'file' + file return u'file' + file
......
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