Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
dump_session(byref=True)
bug when the multiprocessing
module …
…was imported Just calling `import multiprocessing` creates a `'__mp_main__'` entry in `sys.modules` that is simply a reference to the `__main__` module. In the old version of the test for module membership, objects in the global scope are wrongly attributed to this virtual `__mp_main__` module. And therefore `load_session()` fails. Testing for object identity instead of module name resolves the issue.
- Loading branch information