Backport test isolation
bpo-33755 reports an issue about test isolation. It turns out that there was a sys.modules
leak in the test suite. PR #7412 fixes the problem. While I don't think the underlying cause is evident in the standalone version of importlib_resources
, we should still adopt the test isolation fix.
It's easy for Python 3, not so much for Python 2.7, but I'll back port a fix.