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