You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pytester.popen() silently ignores an explicit env= #15471
🤖 Written by Claude Opus 5.5 via Claude Code for the pytest maintainers; I prompted it, it did the work, I read it.
Pytester.popen(cmdargs, env=...) always replaces kw["env"] with a copy of os.environ plus cwd on PYTHONPATH (src/_pytest/pytester.py, popen), so a caller-supplied environment is dropped without warning.
Activity