---
title: "pytest-env 1.8.7 Breaking Changes on PyPI | Since.dev"
description: "What each pytest-env release removed, renamed or changed: 12 breaking changes in 5 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pytest-env
last_updated: 2026-12-04
---

# 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

Latest version `1.9.0`, released December 4, 2026. [Source repository](https://github.com/pytest-dev/pytest-env)

Its 1.8.0 release requires [Python 3.11](https://since.dev/calendar/python/3.11.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.7.0](#v-1-7-0) to [1.8.7](#v-1-8-7): 8 breaking changes in 4 versions.

## pytest-env 1.8.7 breaking changes

pytest-env 1.8.7, released November 19, 2026: 1 breaking change.

- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.7)

## pytest-env 1.8.6 breaking changes

pytest-env 1.8.6, released November 17, 2026: 5 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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.6)
- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.6)
- **Behavior changed**  

Lines that were previously applied are now rejected. Check INI env entries for unknown flags or missing variable names. [github.com](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.6)
- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.6)
- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.6)

## pytest-env 1.8.1 breaking changes

pytest-env 1.8.1, released October 18, 2026: 1 breaking change.

- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.1)

## pytest-env 1.8.0 breaking changes

pytest-env 1.8.0, released October 10, 2026: 1 breaking change.

- **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](https://github.com/pytest-dev/pytest-env/releases/tag/1.8.0)

## pytest-env 1.7.0 breaking changes

pytest-env 1.7.0, released July 21, 2026: 4 breaking changes.

- **Signature changed** `pytest_env.version.__commit_id__`  

Was \_\_commit_id\_\_: COMMIT_ID; now \_\_commit_id\_\_: str | None. [pypi.org](https://pypi.org/project/pytest-env/1.7.0/)
- **Signature changed** `pytest_env.version.__version_tuple__`  

Was \_\_version_tuple\_\_: VERSION_TUPLE; now \_\_version_tuple\_\_: tuple\[int | str, ...\]. [pypi.org](https://pypi.org/project/pytest-env/1.7.0/)
- **Signature changed** `pytest_env.version.commit_id`  

Was commit_id: COMMIT_ID; now commit_id: str | None. [pypi.org](https://pypi.org/project/pytest-env/1.7.0/)
- **Signature changed** `pytest_env.version.version_tuple`  

Was version_tuple: VERSION_TUPLE; now version_tuple: tuple\[int | str, ...\]. [pypi.org](https://pypi.org/project/pytest-env/1.7.0/)

## Related packages

- [pytest-asyncio](https://since.dev/packages/pypi/pytest-asyncio.md)
- [pytest-cov](https://since.dev/packages/pypi/pytest-cov.md)
- [pytest-django](https://since.dev/packages/pypi/pytest-django.md)
- [pytest-github-actions-annotate-failures](https://since.dev/packages/pypi/pytest-github-actions-annotate-failures.md)
- [pytest-mock](https://since.dev/packages/pypi/pytest-mock.md)
- [pytest-rerunfailures](https://since.dev/packages/pypi/pytest-rerunfailures.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
