Commit 9279f057 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test case fix

parent 4bf744f2
...@@ -54,10 +54,15 @@ def h(a, b): ...@@ -54,10 +54,15 @@ def h(a, b):
x = 3 x = 3
return x return x
try:
import __builtin__ as builtins
except ImportError:
import builtins
def i(a, b): def i(a, b):
x = 0 x = 0
if str(a).upper() == u"1": if builtins.str(a).upper() == u"1":
x = 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 x = 2
return x return x
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment