summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/float/float2int_doubleprec_intbig.py2
-rw-r--r--tests/float/float2int_fp30_intbig.py2
-rw-r--r--tests/float/float2int_intbig.py2
3 files changed, 3 insertions, 3 deletions
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"))