pytest-env breaking changes
pytest-env 1.8.7 (November 19, 2026) is its newest release with breaking changes. The first: Configuration changed env_files_skip_if_set. Every breaking API change we have recorded in pytest-env on PyPI: 12 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.9.0, released December 4, 2026. Source repository
Its 1.8.0 release requires Python 3.11 or later. Python end of life dates.
pytest-env 1.8.7 breaking changes
- Configuration changed
env_files_skip_if_set
Native TOML configuration now raises an error if env_files_skip_if_set is set to a non-boolean value. Configs that used a non-boolean value must be changed to true or false. github.com
pytest-env 1.8.6 breaking changes
- Behavior changed
An invalid {VAR} template now produces a usage error naming the entry instead of printing an environment value. Fix templates that relied on the old output. github.com - Behavior changed
Entries that were previously applied are now rejected. Remove unknown keys and make sure flags are booleans and every entry has a value. github.com - Behavior changed
Lines that were previously applied are now rejected. Check INI env entries for unknown flags or missing variable names. github.com - Behavior changed
--envfile
An empty --envfile value no longer loads the configured env files and instead raises an error. Do not pass an empty --envfile value. github.com - Behavior changed
-c
With -c, the [pytest_env] table is read from the selected custom-named file rather than a sibling or parent file. Check that the selected file holds your settings. github.com
pytest-env 1.8.1 breaking changes
- Behavior changed
env_files
An explicitly empty native env_files list is now respected instead of falling back to the INI setting. Check projects that set an empty env_files list alongside INI env_files. github.com
pytest-env 1.8.0 breaking changes
- Default changed
The package now requires Python 3.11 or newer, so users on older Python versions must upgrade Python before installing this release. github.com
pytest-env 1.7.0 breaking changes
- Signature changed
pytest_env.version.__commit_id__
Was __commit_id__: COMMIT_ID; now __commit_id__: str | None. pypi.org - Signature changed
pytest_env.version.__version_tuple__
Was __version_tuple__: VERSION_TUPLE; now __version_tuple__: tuple[int | str, ...]. pypi.org - Signature changed
pytest_env.version.commit_id
Was commit_id: COMMIT_ID; now commit_id: str | None. pypi.org - Signature changed
pytest_env.version.version_tuple
Was version_tuple: VERSION_TUPLE; now version_tuple: tuple[int | str, ...]. pypi.org
Related packages
- pytest-asyncio
- pytest-cov
- pytest-django
- pytest-github-actions-annotate-failures
- pytest-mock
- pytest-rerunfailures
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.