Fix how it appears we need to use mock_anything to avoid 'self' errors

Closes-Bug: #1371724

Change-Id: Ie3fdc73924ef99691879ceb5efd9d5d9bb97a836
This commit is contained in:
Joshua Harlow 2014-09-19 11:38:22 -07:00 committed by Davanum Srinivas (dims)
parent e54a359733
commit 5d3b3da8cb

View File

@ -106,7 +106,8 @@ class ForeverRetryUncaughtExceptionsTest(test_base.BaseTestCase):
def exc_retrier_common_start(self):
self.stubs.Set(time, 'sleep', self.my_time_sleep)
self.mox.StubOutWithMock(logging, 'exception')
self.mox.StubOutWithMock(time, 'time')
self.mox.StubOutWithMock(time, 'time',
use_mock_anything=True)
self.mox.StubOutWithMock(self, 'exception_to_raise')
def exc_retrier_sequence(self, exc_id=None, timestamp=None,