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

Restore sys.path after importing test modules #338

Merged
merged 2 commits into from
Apr 3, 2020
Merged

Conversation

blueyed
Copy link
Owner

@blueyed blueyed commented Apr 2, 2020

Ref: pytest-dev#5147 (comment)

Test fixes upstreamed: pytest-dev#7008

blueyed added 2 commits April 3, 2020 08:16
Use `testdir.syspathinsert()` with multiprocessing tests:

- `test_chained_exceptions_no_reprcrash`
- `test_exception_handling_no_traceback`

This only works currently because `_importtestmodule` changes `sys.path`
as a side-effect.

It appears to be only required on Windows though - likely due to the
multiprocessing method used there.
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.

1 participant