Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant