-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a test that only passed due to test interactions #443
Conversation
plugin_manager = EggBasketPluginManager( | ||
plugin_path=[ | ||
self.bad_eggs_dir, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fairly sure that we don't need the bad_eggs_dir
for this test.
|
Second test fixed, and PR updated to use a cleaner fix for restoring |
Never mind the approval. Didn't notice the CI failure. |
Sigh. Neither did I. Investigating. |
Okay, looks like the problem is yet more dependence on global state. When I was testing, the |
Review was based on now-outdated code.
Fix a test that was only passing as a result of side-effects from other tests in the same
TestCase
.The test was passing when run as part of the complete test case because a distribution of
acme.foo
with version0.1a1
was already in the global working set. This PR changes the test to explicitly addacme.foo
to the global working set, so that the test passes both standalone and as part of the whole test case.(Note that the global working set is reset at
tearDown
time, though I plan another PR to clean up the test side-effects.)Closes #441