summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-07-18 19:31:48 +0000
committerGerrit Code Review <review@openstack.org>2014-07-18 19:31:48 +0000
commitc3c2a58dfeb5460fa873646f609b6470ebc8d0ba (patch)
treea85d958aed7559c4e203ae046afa54b69b6d8c4a
parent69c2c3f78bb779408f62c453a6af9cb8e60eccf5 (diff)
parente11a0ecb8fdbe91342f354980b5d237bad99c1dc (diff)
downloadoslo-incubator-c3c2a58dfeb5460fa873646f609b6470ebc8d0ba.tar.gz
Merge "Fix "tests.unit.test_excutils" test with python 3.4"
-rw-r--r--tests/unit/test_excutils.py5
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,