The source project of this merge request has been removed.
Manager.imports(): Restore Python import behavior even if an exception is raised
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.