projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a668f22
)
Py3 test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Aug 2008 16:58:36 +0000
(18:58 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Aug 2008 16:58:36 +0000
(18:58 +0200)
tests/run/builtinnames.pyx
patch
|
blob
|
history
diff --git
a/tests/run/builtinnames.pyx
b/tests/run/builtinnames.pyx
index 3b8d6c8b23b49e26051bde3f080e0c3ab1afd1dd..aba3ac870ac6704229e582b374c5313bece43906 100644
(file)
--- 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