diff options
author | Mats Wichmann <mats@linux.com> | 2019-12-22 15:44:29 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-12-23 16:52:35 (GMT) |
commit | a5359e3f10a6bcdb5d9667c95c40ddd890b551e8 (patch) | |
tree | dd587ca78a6d4542c6bd968e4590b6671464d39d /test/LINK | |
parent | 5a864bae1380155997f4041d607e4abcf74652ca (diff) | |
download | SCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.zip SCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.tar.gz SCons-a5359e3f10a6bcdb5d9667c95c40ddd890b551e8.tar.bz2 |
syntax fixups suggested by PyCharm
Drop unneeded parens.
Drop trailing semicolons.
Triple double-quote docstrings.
Regexes drop unneeded escapes.
Spaces around parens, braces: remove/add.
Some one-tuples get their missing closing comma.
A couple of sets use set init syntax {foo} instead of set([iter]) now.
And a fiddle in Node to reduce lookup time on md5 signature functions
(came about because of a line-too-long issue, initially)
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/LINK')
-rw-r--r-- | test/LINK/LINKCOMSTR.py | 2 | ||||
-rw-r--r-- | test/LINK/SHLINKCOMSTR.py | 2 | ||||
-rw-r--r-- | test/LINK/applelink.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/LINK/LINKCOMSTR.py b/test/LINK/LINKCOMSTR.py index df070fb..419056c 100644 --- a/test/LINK/LINKCOMSTR.py +++ b/test/LINK/LINKCOMSTR.py @@ -75,7 +75,7 @@ int main(int argc, char **argv) {} """) test.run() -if ("Linking" not in test.stdout()): +if "Linking" not in test.stdout(): test.fail_test() test.pass_test() diff --git a/test/LINK/SHLINKCOMSTR.py b/test/LINK/SHLINKCOMSTR.py index 4dd5c7c..18cfc9b 100644 --- a/test/LINK/SHLINKCOMSTR.py +++ b/test/LINK/SHLINKCOMSTR.py @@ -87,7 +87,7 @@ int i; """) test.run() - if ("Shared-Linking" not in test.stdout()): + if "Shared-Linking" not in test.stdout(): test.fail_test() test.pass_test() diff --git a/test/LINK/applelink.py b/test/LINK/applelink.py index e1b2837..c631e32 100644 --- a/test/LINK/applelink.py +++ b/test/LINK/applelink.py @@ -135,7 +135,7 @@ for SHLIBVERSION, \ test.must_contain_all_lines(test.stdout(), ['-Wl,-compatibility_version,{APPLELINK_COMPATIBILITY_VERSION}'.format(**locals())]) - if not (extra_flags): + if not extra_flags: # Now run otool -L to get the compat and current version info and verify it's correct in the library. # We expect output such as this # libfoo.1.2.3.dylib: |