Skip to content

Commit 97ec887

Browse files
committed
fix(polly/**.py): fix comparison to True/False
from PEP8 (https://peps.python.org/pep-0008/#programming-recommendations): > Comparisons to singletons like None should always be done with is or > is not, never the equality operators.
1 parent 1e4e1ce commit 97ec887

File tree

1 file changed

+1
-1
lines changed
  • polly/lib/External/isl/imath/tests/gmp-compat-test

1 file changed

+1
-1
lines changed

polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run_test(test, line, name, gmp_test_so, imath_test_so, *args):
5454
if childpid == 0:
5555
eq = test(line, name, gmp_test_so, imath_test_so, *args)
5656
if fork:
57-
sys.exit(eq != True)
57+
sys.exit(not eq)
5858
else:
5959
return eq
6060
else:

0 commit comments

Comments
 (0)