From 9518368e654c8ad1075968dd59edeca39731f888 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Aug 2008 18:58:36 +0200 Subject: [PATCH] Py3 test fix --- tests/run/builtinnames.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2