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

Support duplicate plugin instances in test_list_from_entry_points #36

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Apr 2, 2022

Account for the possibility of the isort plugin occurring more than
once in the plugin list, in test_list_from_entry_points. This is needed
to avoid test failures on Gentoo where tests are run in a venv
with --system-site-packages. As a result, if ini2toml is installed
already, it grabs all plugins twice — once from the venv, and then again
from system site-packages directory.

Account for the possibility of the isort plugin occurring more than
once in the plugin list, in test_list_from_entry_points.  This is needed
to avoid test failures on Gentoo where tests are run in a venv
with --system-site-packages.  As a result, if ini2toml is installed
already, it grabs all plugins twice — once from the venv, and then again
from system site-packages directory.
@abravalheri abravalheri merged commit 1a40d27 into abravalheri:main Apr 3, 2022
@abravalheri
Copy link
Owner

Thank you very much Michał.

@mgorny
Copy link
Contributor Author

mgorny commented Apr 3, 2022

Thank you! I couldn't figure out how to fix this test failure on our end, so this helps greatly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants