From: Stefan Behnel Date: Mon, 19 Apr 2010 08:39:49 +0000 (+0200) Subject: Py3 test fix X-Git-Tag: 0.13.beta0~180 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf80540ef4f392e22d24c0789e8c2eadcf8884fd;p=cython.git Py3 test fix --- diff --git a/tests/run/for_in_string.pyx b/tests/run/for_in_string.pyx index 4851ab17..1ad0cfa2 100644 --- 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'