mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 13:53:07 +00:00
assertFailure instead of bespoke code
This commit is contained in:
parent
bddd2cc996
commit
13350d60c2
@ -256,9 +256,7 @@ class RunTests(unittest.TestCase):
|
||||
i, o, e = StringIO(), StringIO(), StringIO()
|
||||
d = runner.dispatch(config, i, o, e)
|
||||
|
||||
def must_be_systemexit(f):
|
||||
assert isinstance(f.value, SystemExit)
|
||||
d.addErrback(must_be_systemexit)
|
||||
self.assertFailure(d, SystemExit)
|
||||
|
||||
output = e.getvalue()
|
||||
# should print out the collected logs and an error-code
|
||||
|
Loading…
x
Reference in New Issue
Block a user