projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc320e0
)
Py3 test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 19 Apr 2010 08:39:49 +0000
(10:39 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 19 Apr 2010 08:39:49 +0000
(10:39 +0200)
tests/run/for_in_string.pyx
patch
|
blob
|
history
diff --git
a/tests/run/for_in_string.pyx
b/tests/run/for_in_string.pyx
index 4851ab1725e7d61a2d9d84712e0395b6df1c73b5..1ad0cfa23af7a4e795410af4078433243247697a 100644
(file)
--- a/
tests/run/for_in_string.pyx
+++ b/
tests/run/for_in_string.pyx
@@
-14,7
+14,8
@@
def for_in_bytes(bytes s):
'C'
"""
for c in s:
- if c == b'C':
+ # Py2/Py3
+ if c == b'C' or c == c'C':
return 'C'
else:
return 'X'