From 3dca30343f4bd60af39651c48186e31710ad82c2 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Tue, 25 Jan 2022 23:51:49 -0500 Subject: [PATCH] [Tests] Make failure message more clear when test daemon doesn't shut down cleanly --- deluge/tests/basetest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/tests/basetest.py b/deluge/tests/basetest.py index f51a93068..c1719c132 100644 --- a/deluge/tests/basetest.py +++ b/deluge/tests/basetest.py @@ -40,8 +40,7 @@ class BaseTestCase(unittest.TestCase): d = maybeDeferred(self.tear_down) def on_teardown_failed(error): - warnings.warn('Error caught in test teardown!\n%s' % error.getTraceback()) - self.fail() + self.fail('Error caught in test teardown!\n%s' % error.getTraceback()) def on_teardown_complete(result): component._ComponentRegistry.components.clear()