summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-09-21 14:21:38 (GMT)
committerMats Wichmann <mats@linux.com>2020-09-21 16:39:39 (GMT)
commit22c489260a659971aa6cea88f1024824fe31152d (patch)
treec67489084dcaa97d8c442033cfd213db0dcd4a19 /test/option
parent858ae87bad24f9df9b1731d154e72cf6d06f05de (diff)
downloadSCons-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.py7
-rw-r--r--test/option/debug-objects.py7
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=[])