diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-09 21:40:06 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-09 21:40:06 +0200 |
commit | 2b4c89ada87b126bfd6b70048e98e1ec0a528867 (patch) | |
tree | abd62ed3d4d10dde308f01247a7864fe81ae4c31 /Cython/Build/Tests/TestCythonizeArgsParser.py | |
parent | 2f6c69b1e3d344239399f4f7188a52d5f29b51c3 (diff) | |
download | cython-linting.tar.gz |
Clean up some operator usages and style issues, and enforce them with pycodestyle.linting
Diffstat (limited to 'Cython/Build/Tests/TestCythonizeArgsParser.py')
-rw-r--r-- | Cython/Build/Tests/TestCythonizeArgsParser.py | 6 |
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 |