qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

"assert" doesn't work #153

Open hakkinenvthh opened 7 years ago

hakkinenvthh commented 7 years ago

Hello, I tried a script like this:

try: print(1) assert 2 + 2 == 5 except AssertionError: print(3) except: print(4)

The result: it prints only "1". Tried on the PC the result must be "1 3"

hakkinenvthh commented 7 years ago

And then this code: def func(x): assert x > 0, "error" print(x) func(-1)

It prints"-1" as result

hakkinenvthh commented 7 years ago

I run QPython 2 and 3 on Samsung Note 3, Android 6.0.1