From bf80540ef4f392e22d24c0789e8c2eadcf8884fd Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 19 Apr 2010 10:39:49 +0200 Subject: [PATCH] Py3 test fix --- tests/run/for_in_string.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- 2.26.2