Chromium Code Reviews| 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): |
|
tandrii(chromium)
2016/06/13 17:03:27
i'd not touch this one. Provide your testcase, yes
Sergiy Byelozyorov
2016/06/14 06:12:14
Developers are used to inherit from auto_stub.Test
tandrii(chromium)
2016/06/14 10:21:43
it's a trade off for how easy it'd be to roll this
Sergiy Byelozyorov
2016/06/14 19:47:01
Acknowledged.
|
| """Adds self.mock() and self.has_failed() to a TestCase.""" |
| def tearDown(self): |
| AutoStubMixIn.tearDown(self) |
| - unittest.TestCase.tearDown(self) |
| + super(TestCase, self).tearDown() |
|
tandrii(chromium)
2016/06/13 17:03:27
this is bad. It should be explicit as it used to b
Sergiy Byelozyorov
2016/06/14 06:12:14
We do it differently everywhere else. Why should i
tandrii(chromium)
2016/06/14 10:21:43
Oh, yes, I suppose it's Ok. I prefer explicit beca
Sergiy Byelozyorov
2016/06/14 19:47:01
Acknowledged.
|