def test_BaseException(self): self.assertIsNone(fnpe(Exception()))
def test_unpickleable(self): self.assertIsInstance(fnpe(Unpickleable()), KeyError) self.assertIsNone(fnpe(Impossible()))
def test_oldstyle(self): self.assertIsNone(fnpe(Oldstyle()))
def test_unpickleable(self): self.assertTrue(isinstance(fnpe(Unpickleable()), KeyError)) self.assertEquals(fnpe(Impossible()), None)
def test_BaseException(self): self.assertTrue(fnpe(Exception()) is None)
def test_oldstyle(self): self.assertTrue(fnpe(Oldstyle()) is None)