Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1327)

Unified Diff: testing_support/auto_stub.py

Issue 2067533002: Check for stray threads from tests and fail if found (Closed) Base URL: https://chromium.googlesource.com/infra/testing/testing_support.git@master
Patch Set: Addressed comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.md ('k') | testing_support/tests/thread_watcher_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/auto_stub.py
diff --git a/testing_support/auto_stub.py b/testing_support/auto_stub.py
index e1155a64ae71f4ec5e0607ad95dd2eb352dd14c8..bcede8773a416835d1d8b5373201ac302af3a82e 100644
--- a/testing_support/auto_stub.py
+++ b/testing_support/auto_stub.py
@@ -4,7 +4,8 @@
import collections
import inspect
-import unittest
+
+from testing_support import thread_watcher
class AutoStubMixIn(object):
@@ -63,8 +64,8 @@ class SimpleMock(object):
caller_name, ', '.join(filter(None, [str_args, str_kwargs]))))
-class TestCase(unittest.TestCase, AutoStubMixIn):
+class TestCase(thread_watcher.TestCase, AutoStubMixIn):
"""Adds self.mock() and self.has_failed() to a TestCase."""
def tearDown(self):
AutoStubMixIn.tearDown(self)
- unittest.TestCase.tearDown(self)
+ super(TestCase, self).tearDown()
« no previous file with comments | « README.md ('k') | testing_support/tests/thread_watcher_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698