MCPcopy Index your code
hub / github.com/python/cpython / RaisingThread

Class RaisingThread

Lib/test/test_importlib/test_lazy.py:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 self.assertEqual(loader.load_count, 0)
156
157 class RaisingThread(threading.Thread):
158 exc = None
159 def run(self):
160 try:
161 super().run()
162 except Exception as exc:
163 self.exc = exc
164
165 def access_module():
166 return module.attr

Callers 1

test_module_load_raceMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_module_load_raceMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…