Py3 test fix
authorStefan Behnel <scoder@users.berlios.de>
Mon, 19 Apr 2010 08:39:49 +0000 (10:39 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 19 Apr 2010 08:39:49 +0000 (10:39 +0200)
tests/run/for_in_string.pyx

index 4851ab1725e7d61a2d9d84712e0395b6df1c73b5..1ad0cfa23af7a4e795410af4078433243247697a 100644 (file)
@@ -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'