| 1543 | for module_name in ["_missing_module", None]: |
| 1544 | |
| 1545 | class FaultyModule(base_class): |
| 1546 | def __getattr__(self, name): |
| 1547 | # This throws an exception while looking up within |
| 1548 | # pickle.whichmodule or getattr(module, name, None) |
| 1549 | raise Exception() |
| 1550 | |
| 1551 | class Foo: |
| 1552 | __module__ = module_name |
no outgoing calls