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(tests): ensure only mocked system site is used #9941

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

abn
Copy link
Member

@abn abn commented Jan 5, 2025

Previously, on systems where there existed multiple system-site locations the test_system_site_packages test case failed due to it incorrectly assuming only one site needed removal when patching the environment's sys_path. This change ensures all paths outside the tmp_path is ignored.

@abn abn requested a review from a team January 5, 2025 15:03
@abn abn mentioned this pull request Jan 5, 2025
@radoering radoering force-pushed the fix-system-site-test branch from 1b426c8 to 9c212d4 Compare January 5, 2025 16:16
Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like FreeBSD fails after removing the workaround.

@abn abn force-pushed the fix-system-site-test branch from 9c212d4 to 095a97d Compare January 5, 2025 16:44
@abn
Copy link
Member Author

abn commented Jan 5, 2025

I wrongly assumed the fix was no longer needed based on the previous failure. It seems that with the change the sqlite3 package correctly goes to the system site. I am guessing this should fix it, but lets see if the most recent change fixes it.

@abn abn requested a review from radoering January 5, 2025 16:52
@abn abn force-pushed the fix-system-site-test branch from 095a97d to 625df0d Compare January 5, 2025 17:18
@abn abn dismissed radoering’s stale review January 5, 2025 17:27

Fixed issue.

@abn abn requested a review from a team January 5, 2025 17:53
Previously, on systems where there existed multiple system-site
locations the `test_system_site_packages` test case failed due to it
incorrectly assuming only one site needed removal when patching the
environment's `sys_path`. This change ensures all paths outside the
`tmp_path` is ignored.
@radoering radoering force-pushed the fix-system-site-test branch from 625df0d to 04fce82 Compare January 5, 2025 17:59
@abn abn merged commit fc2faeb into python-poetry:main Jan 5, 2025
73 checks passed
@abn abn deleted the fix-system-site-test branch January 5, 2025 18:47
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