From 13350d60c2905a79c313edd4dbd984ed2494dec2 Mon Sep 17 00:00:00 2001 From: meejah Date: Sun, 22 Dec 2019 02:21:55 -0700 Subject: [PATCH] assertFailure instead of bespoke code --- src/allmydata/test/cli/test_start.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/allmydata/test/cli/test_start.py b/src/allmydata/test/cli/test_start.py index 90fde3969..42c70f024 100644 --- a/src/allmydata/test/cli/test_start.py +++ b/src/allmydata/test/cli/test_start.py @@ -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