MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_exceptions

Function get_exceptions

Lib/test/test_pickle.py:696–700  ·  view source on GitHub ↗
(mod)

Source from the content-addressed store, hash-verified

694 return obj
695
696def get_exceptions(mod):
697 for name in dir(mod):
698 attr = getattr(mod, name)
699 if isinstance(attr, type) and issubclass(attr, BaseException):
700 yield name, attr
701
702class CompatPickleTests(unittest.TestCase):
703 def test_import(self):

Callers 2

test_exceptionsMethod · 0.85

Calls 4

dirFunction · 0.85
getattrFunction · 0.85
isinstanceFunction · 0.85
issubclassFunction · 0.85

Tested by

no test coverage detected