From 1331f8ced41ccccfd5239d86dea73b2114953555 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Sun, 12 May 2024 00:06:53 +0900 Subject: [PATCH] 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. --- polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py b/polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py index 1b5a38ce829b3..d7cc2b452efc6 100644 --- a/polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py +++ b/polly/lib/External/isl/imath/tests/gmp-compat-test/genpytest.py @@ -54,7 +54,7 @@ def run_test(test, line, name, gmp_test_so, imath_test_so, *args): if childpid == 0: eq = test(line, name, gmp_test_so, imath_test_so, *args) if fork: - sys.exit(eq != True) + sys.exit(not eq) else: return eq else: