Exemple #1
0
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError
Exemple #2
0
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
Exemple #3
0
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
Exemple #4
0
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
Exemple #5
0
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
Exemple #6
0
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError