Skip to content
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

Merged
merged 4 commits into from
Jul 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion envisage/tests/test_egg_basket_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ def on_broken_plugin(ep, exc):
self.assertTrue(isinstance(exc, ImportError))

def test_ignore_broken_distributions_raises_exceptions_by_default(self):
# Make sure that the acme.foo distribution is already in the
# working set, with version 0.1a1.
pkg_resources.working_set.add_entry(join(self.eggs_dir, "acme.foo"))

plugin_manager = EggBasketPluginManager(
plugin_path=[
self.bad_eggs_dir,
Copy link
Member Author

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.

# Attempt to add acme.foo, with conflicting version 0.1a11
self._create_broken_distribution_eggdir("acme.foo*.egg"),
],
)
Expand Down