From: Stefan Behnel Date: Thu, 7 Aug 2008 16:58:36 +0000 (+0200) Subject: Py3 test fix X-Git-Tag: 0.9.8.1~86 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9518368e654c8ad1075968dd59edeca39731f888;p=cython.git Py3 test fix --- diff --git a/tests/run/builtinnames.pyx b/tests/run/builtinnames.pyx index 3b8d6c8b..aba3ac87 100644 --- a/tests/run/builtinnames.pyx +++ b/tests/run/builtinnames.pyx @@ -10,12 +10,12 @@ rangeabc def test_file_py(file): - assert isinstance(file, str), \ + assert isinstance(file, (str, unicode)), \ u"not a string, found '%s' instead" % file.__class__.__name__ return 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__ return u'file' + file