diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-07-18 19:31:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-07-18 19:31:48 +0000 |
commit | c3c2a58dfeb5460fa873646f609b6470ebc8d0ba (patch) | |
tree | a85d958aed7559c4e203ae046afa54b69b6d8c4a | |
parent | 69c2c3f78bb779408f62c453a6af9cb8e60eccf5 (diff) | |
parent | e11a0ecb8fdbe91342f354980b5d237bad99c1dc (diff) | |
download | oslo-incubator-c3c2a58dfeb5460fa873646f609b6470ebc8d0ba.tar.gz |
Merge "Fix "tests.unit.test_excutils" test with python 3.4"
-rw-r--r-- | tests/unit/test_excutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/test_excutils.py b/tests/unit/test_excutils.py index 53e7daf9..cb28fa16 100644 --- a/tests/unit/test_excutils.py +++ b/tests/unit/test_excutils.py @@ -103,10 +103,13 @@ class ForeverRetryUncaughtExceptionsTest(test_base.BaseTestCase): def my_time_sleep(self, arg): pass + def my_time_time(self, args): + pass + 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', self.my_time_time) self.mox.StubOutWithMock(self, 'exception_to_raise') def exc_retrier_sequence(self, exc_id=None, timestamp=None, |