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

Sys path guard #13

@ejgroene

Description

@ejgroene

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions