mirror of https://github.com/celery/kombu.git
Merge branch '2.5'
This commit is contained in:
commit
53d1f06a5c
|
@ -44,7 +44,7 @@ class test_Channel(TestCase):
|
|||
pass
|
||||
|
||||
self.conn = Mock()
|
||||
self.conn._get_free_channel_id.side_effect = partial(next, count(0))
|
||||
self.conn._get_free_channel_id.side_effect = count(0).next
|
||||
self.conn.channels = {}
|
||||
self.channel = Channel(self.conn, 0)
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ def retry_over_time(fun, catch, args=[], kwargs={}, errback=None,
|
|||
if callback:
|
||||
callback()
|
||||
tts = (errback(exc, interval_range, retries) if errback
|
||||
else next(interval_range))
|
||||
else interval_range.next())
|
||||
if tts:
|
||||
for i in range(int(tts / interval_step)):
|
||||
if callback:
|
||||
|
|
Loading…
Reference in New Issue