Closed mdickinson closed 1 year ago
Note: this is with the latest setuptools version and Python 3.11.
The problem appears to be that our code mutates the pkg_resources
WorkingSet
, and then to compensate, replaces it with a fresh WorkingSet
at tearDown
time.
The original pkg_resources.WorkingSet
has a callback registered that modifies sys.path
. The replacement WorkingSet
does not seem to have that callback registered, so sys.path
isn't being modified in the second and subsequent tests.
Related issue: the test suite also currently fails under haas
. We should double check with haas
before closing this issue.
The
test_egg_plugin_manager
test fails when run standalone, but passes as part of a complete test run (usingpython -m unittest
).