Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix load_session() and restrict loading a session in a different modu…
…le (#507) * Don't update vars(main) twice * Inspect the pickle beginnig to identify main and check against 'main' argument * Save and restore modules created at runtime with ModuleType() * tests: don't need to add runtime module to sys.modules * load_session_copy(): load a session state into a runtime module * tests: session tests code reorganization * tests: test runtime created module session saving * tests: test load_session_copy * review: adjustments * small fixes * use __dict__ * naming changes * review: final renaming and adjustments
- Loading branch information