Exemplo n.º 1
0
 def test_succeeds_after_retries(self):
     x = RaisesNTypeErrors(5)
     x = retry(5, TypeError, 0.01, 'ERROR')(x)
     x()
Exemplo n.º 2
0
 def test_succeeds_after_retries(self):
     x = RaisesNTypeErrors(5)
     x = retry(5, TypeError, 0.01, 'ERROR')(x)
     x()
Exemplo n.º 3
0
 def test_fail_after_n_tries(self):
     x = RaisesNTypeErrors(5)
     x = retry(4, TypeError, 0.01, 'ERROR')(x)
     with self.assertRaises(TypeError):
         x()
Exemplo n.º 4
0
 def test_fail_after_n_tries(self):
     x = RaisesNTypeErrors(5)
     x = retry(4, TypeError, 0.01, 'ERROR')(x)
     with self.assertRaises(TypeError):
         x()