mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-06 00:15:30 +01:00
Simplify assertion logic in Runner.py
This commit is contained in:
parent
ef75def36a
commit
ddce7d344e
@ -422,9 +422,10 @@ class Parallel(object):
|
||||
self.get_out()
|
||||
|
||||
self.ready.put(None)
|
||||
assert (self.count == 0 or self.stop)
|
||||
assert not self.postponed
|
||||
assert (not self.incomplete or self.stop)
|
||||
if not self.stop:
|
||||
assert not self.count
|
||||
assert not self.postponed
|
||||
assert not self.incomplete
|
||||
|
||||
def prio_and_split(self, tasks):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user