Skip to content

Manager.imports(): Restore Python import behavior even if an exception is raised

Nico Madysa requested to merge (removed):master into master

The context manager used to only restore sys.metapath and sys.modules if no exception was raised inside the imports() context.

I've also tried to add a few tests for the behavior. Unfortunately, they seem to be failing on JPype1==0.6 and I don't know enough about JPype to understand why. Some help on this front would be appreciated.

Merge request reports