diff options
author | Mats Wichmann <mats@linux.com> | 2020-09-21 14:21:38 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-09-21 16:39:39 (GMT) |
commit | 22c489260a659971aa6cea88f1024824fe31152d (patch) | |
tree | c67489084dcaa97d8c442033cfd213db0dcd4a19 /test/option | |
parent | 858ae87bad24f9df9b1731d154e72cf6d06f05de (diff) | |
download | SCons-22c489260a659971aa6cea88f1024824fe31152d.zip SCons-22c489260a659971aa6cea88f1024824fe31152d.tar.gz SCons-22c489260a659971aa6cea88f1024824fe31152d.tar.bz2 |
Run autoflake on code
Eliminate unneeded imports, and a few unneeded statements -
usually "pass" where it is not syntactically needed.
A couple of import try blocks were eliminated or changed
when they're "cannot happen" due to current floor Python version.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/option')
-rw-r--r-- | test/option/debug-count.py | 7 | ||||
-rw-r--r-- | test/option/debug-objects.py | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/test/option/debug-count.py b/test/option/debug-count.py index f2fceb4..cf46feb 100644 --- a/test/option/debug-count.py +++ b/test/option/debug-count.py @@ -34,13 +34,6 @@ import TestSCons test = TestSCons.TestSCons() -try: - import weakref -except ImportError: - x = "Python version has no 'weakref' module; skipping tests.\n" - test.skip_test(x) - - test.write('SConstruct', """ DefaultEnvironment(tools=[]) diff --git a/test/option/debug-objects.py b/test/option/debug-objects.py index beec4b7..9c8536c 100644 --- a/test/option/debug-objects.py +++ b/test/option/debug-objects.py @@ -32,13 +32,6 @@ import TestSCons test = TestSCons.TestSCons() -try: - import weakref -except ImportError: - x = "Python version has no 'weakref' module; skipping tests.\n" - test.skip_test(x) - - test.write('SConstruct', """ DefaultEnvironment(tools=[]) |