[Tests] Make failure message more clear when test daemon doesn't shut down cleanly

This commit is contained in:
Chase Sterling 2022-01-25 23:51:49 -05:00 committed by Calum Lind
parent 71cde7c05e
commit 3dca30343f
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 1 additions and 2 deletions

View File

@ -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()