Example #1
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, [ValueError, IndexError], 3, 0.001, lambda e, x: None, *self.expected_args, **self.expected_kwargs)
Example #2
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, [ValueError, IndexError],
                          3, 0.001, lambda e, x: None, *self.expected_args,
                          **self.expected_kwargs)
Example #3
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, Exception, 3, 0.001, lambda e, x: None, *self.expected_args, **self.expected_kwargs)
Example #4
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, Exception, 3, 0.001,
                          lambda e, x: None, *self.expected_args,
                          **self.expected_kwargs)