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