summaryrefslogtreecommitdiffstats
path: root/SCons/JobTests.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-09-21 23:56:09 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-09-21 23:56:09 (GMT)
commitea642040eca864aaeac25da013cce9fd875489f0 (patch)
tree598683129995080d80836ee16c58d881cd1e7e25 /SCons/JobTests.py
parentb0b370d20b55a7b1296f6ecbb3d45e9eb076bc1c (diff)
parentf57194667c8d8e8a3bfbfd3bd807b177758d1751 (diff)
downloadSCons-ea642040eca864aaeac25da013cce9fd875489f0.zip
SCons-ea642040eca864aaeac25da013cce9fd875489f0.tar.gz
SCons-ea642040eca864aaeac25da013cce9fd875489f0.tar.bz2
Merge branch 'mwichmann-autoflake' into master
Diffstat (limited to 'SCons/JobTests.py')
-rw-r--r--SCons/JobTests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/JobTests.py b/SCons/JobTests.py
index 7fc969b..33ad3f9 100644
--- a/SCons/JobTests.py
+++ b/SCons/JobTests.py
@@ -211,7 +211,7 @@ class Taskmaster:
try:
import threading
self.guard = threading.Lock()
- except:
+ except ImportError:
self.guard = DummyLock()
# keep track of the order tasks are begun in
@@ -255,7 +255,7 @@ class ParallelTestCase(unittest.TestCase):
try:
import threading
- except:
+ except ImportError:
raise NoThreadsException()
taskmaster = Taskmaster(num_tasks, self, RandomTask)