projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bf744f
)
Py3 test case fix
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 30 Dec 2008 12:08:45 +0000
(13:08 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 30 Dec 2008 12:08:45 +0000
(13:08 +0100)
tests/run/if.pyx
patch
|
blob
|
history
diff --git
a/tests/run/if.pyx
b/tests/run/if.pyx
index 87123ae08f9184c22d51ce74d40a5b484aba9caa..a4922051626bd54a75193351170c79d09dbaa703 100644
(file)
--- a/
tests/run/if.pyx
+++ b/
tests/run/if.pyx
@@
-54,10
+54,15
@@
def h(a, b):
x = 3
return x
+try:
+ import __builtin__ as builtins
+except ImportError:
+ import builtins
+
def i(a, b):
x = 0
- if str(a).upper() == u"1":
+ if
builtins.
str(a).upper() == u"1":
x = 1
- if str(a+b).lower() not in (u"1", u"3"):
+ if
builtins.
str(a+b).lower() not in (u"1", u"3"):
x = 2
return x