예제 #1
0
 def test_oldstyle(self):
     assert fnpe(Oldstyle())
예제 #2
0
 def test_BaseException(self):
     assert fnpe(Exception()) is None
예제 #3
0
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
예제 #4
0
 def test_unpickleable(self):
     assert isinstance(fnpe(Unpickleable()), KeyError)
     assert fnpe(Impossible()) is None
예제 #5
0
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
예제 #6
0
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
예제 #7
0
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
예제 #8
0
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
예제 #9
0
 def test_oldstyle(self):
     if Oldstyle is None:
         raise SkipTest('py3k does not support old style classes')
     self.assertTrue(fnpe(Oldstyle()))
예제 #10
0
 def test_oldstyle(self):
     if Oldstyle is None:
         raise SkipTest('py3k does not support old style classes')
     self.assertTrue(fnpe(Oldstyle()))
예제 #11
0
 def test_oldstyle(self):
     self.assertTrue(fnpe(Oldstyle()))
예제 #12
0
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
예제 #13
0
 def test_oldstyle(self):
     self.assertTrue(fnpe(Oldstyle()))