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

Sys path guard #13

Open
ejgroene opened this issue Jan 10, 2023 · 0 comments
Open

Sys path guard #13

ejgroene opened this issue Jan 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ejgroene
Copy link
Contributor

When tests modify sys.path and forget to undo their changes, the code running next might behave unexpectedly. It would be nice to have a fixture that can be used to modify sys.path which restores the old path when done.

Also, this fixture might be nice as a guard, which always checks if tests do not screw up sys.path.

Same idea for import, although that might be more subtle.

@ejgroene ejgroene added the enhancement New feature or request label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant