def test_oldstyle(self): assert fnpe(Oldstyle())
def test_BaseException(self): assert fnpe(Exception()) is None
def test_unpickleable(self): self.assertIsInstance(fnpe(Unpickleable()), KeyError) self.assertIsNone(fnpe(Impossible()))
def test_unpickleable(self): assert isinstance(fnpe(Unpickleable()), KeyError) assert fnpe(Impossible()) is None
def test_oldstyle(self): self.assertIsNone(fnpe(Oldstyle()))
def test_BaseException(self): self.assertIsNone(fnpe(Exception()))
def test_oldstyle(self): if Oldstyle is None: raise SkipTest('py3k does not support old style classes') self.assertTrue(fnpe(Oldstyle()))
def test_oldstyle(self): self.assertTrue(fnpe(Oldstyle()))