'''Test put-reserve-delete cycle'''
# put the job on the queue
'''Test peeking, burying and kicking'''
# put the job on the queue with 1 sec delay
self.btc.put(body, delay=1, callback=self.stop)
- except beanstalkt.UnexpectedResponse as (_, status, __):
+ except beanstalkt.UnexpectedResponse as e:
if status != 'UNKNOWN_COMMAND':
# kick-job command is not available in Beanstalkd version <= 1.7