コード例 #1
0
ファイル: test_config.py プロジェクト: aprajshekhar/crane
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError
コード例 #2
0
ファイル: test_config.py プロジェクト: aprajshekhar/crane
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
コード例 #3
0
ファイル: test_config.py プロジェクト: aprajshekhar/crane
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
コード例 #4
0
ファイル: test_config.py プロジェクト: yithian/crane
 def test_supress_multiple(self):
     with config.supress(TypeError, ValueError):
         raise ValueError
コード例 #5
0
ファイル: test_config.py プロジェクト: yithian/crane
 def test_does_not_over_supress(self):
     with config.supress(TypeError):
         self.assertRaises(ValueError, int, 'notanint')
コード例 #6
0
ファイル: test_config.py プロジェクト: yithian/crane
 def test_supression(self):
     with config.supress(ValueError):
         raise ValueError