summaryrefslogtreecommitdiff
path: root/Cython/Build/Tests/TestCythonizeArgsParser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Build/Tests/TestCythonizeArgsParser.py')
-rw-r--r--Cython/Build/Tests/TestCythonizeArgsParser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Build/Tests/TestCythonizeArgsParser.py b/Cython/Build/Tests/TestCythonizeArgsParser.py
index 374661446..c5a682dd6 100644
--- a/Cython/Build/Tests/TestCythonizeArgsParser.py
+++ b/Cython/Build/Tests/TestCythonizeArgsParser.py
@@ -27,14 +27,14 @@ class TestCythonizeArgsParser(TestCase):
empty_containers = ['directives', 'compile_time_env', 'options', 'excludes']
are_none = ['language_level', 'annotate', 'build', 'build_inplace', 'force', 'quiet', 'lenient', 'keep_going', 'no_docstrings']
for opt_name in empty_containers:
- if len(getattr(options, opt_name))!=0 and (not opt_name in skip):
+ if len(getattr(options, opt_name))!=0 and (opt_name not in skip):
self.assertEqual(opt_name,"", msg="For option "+opt_name)
return False
for opt_name in are_none:
- if (getattr(options, opt_name) is not None) and (not opt_name in skip):
+ if (getattr(options, opt_name) is not None) and (opt_name not in skip):
self.assertEqual(opt_name,"", msg="For option "+opt_name)
return False
- if options.parallel!=parallel_compiles and (not 'parallel' in skip):
+ if options.parallel!=parallel_compiles and ('parallel' not in skip):
return False
return True