Pytester.syspathinsert() has no effect when using runpytest_subprocess() #10651
Labels
plugin: pytester
related to the pytester builtin plugin
type: bug
problem that needs to be addressed
Pytester.syspathinsert() uses
monkeypatch
to temporarily updatesys.path
for the length of the test. However, runpytest_subprocess() starts a new process to without any knowledge of requested changes tosys.path
.Using pytest 7.2.0, the first test case will pass, but the second will fail.
The text was updated successfully, but these errors were encountered: