diff --git a/tests/float/float2int_doubleprec_intbig.py b/tests/float/float2int_doubleprec_intbig.py index 402966cac..565698d87 100644 --- a/tests/float/float2int_doubleprec_intbig.py +++ b/tests/float/float2int_doubleprec_intbig.py @@ -59,7 +59,7 @@ print("power of 10 test: %s" % (testpass and "passed" or "failed")) def fp2int_test(num, name, should_fail): try: x = int(num) - passed = ~should_fail + passed = not should_fail except: passed = should_fail print("%s: %s" % (name, passed and "passed" or "failed")) diff --git a/tests/float/float2int_fp30_intbig.py b/tests/float/float2int_fp30_intbig.py index 1b22fe964..eb65f8950 100644 --- a/tests/float/float2int_fp30_intbig.py +++ b/tests/float/float2int_fp30_intbig.py @@ -56,7 +56,7 @@ print("power of 10 test: %s" % (testpass and "passed" or "failed")) def fp2int_test(num, name, should_fail): try: x = int(num) - passed = ~should_fail + passed = not should_fail except: passed = should_fail print("%s: %s" % (name, passed and "passed" or "failed")) diff --git a/tests/float/float2int_intbig.py b/tests/float/float2int_intbig.py index d047f247f..17414501c 100644 --- a/tests/float/float2int_intbig.py +++ b/tests/float/float2int_intbig.py @@ -59,7 +59,7 @@ print("power of 10 test: %s" % (testpass and "passed" or "failed")) def fp2int_test(num, name, should_fail): try: x = int(num) - passed = ~should_fail + passed = not should_fail except: passed = should_fail print("%s: %s" % (name, passed and "passed" or "failed"))