Skip to content

1.8.6

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:16
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Escape non-printable characters in the --pytest-env-verbose header so each assignment stays on one line (#331) by @gaborbernat.
  • Expand ${VAR} in .env files with the kept value when env_files_skip_if_set skips the file's own assignment (#340) by @gaborbernat.
  • Keep an existing variable when an entry combines skip_if_set (D:) with unset (U:) (#337) by @gaborbernat.
  • Name the file when a TOML file found during discovery does not parse, and skip files whose pytest_env is not a table (#333) by @gaborbernat.
  • Raise FileNotFoundError for an empty --envfile value instead of loading the configured env files (#330) by @gaborbernat.
  • Read [pytest_env] from a custom-named TOML file selected with -c instead of a sibling or parent file (#339) by @gaborbernat.
  • Reject INI env lines with an unknown flag or no variable name instead of applying them (#334) by @gaborbernat.
  • Reject native TOML entry tables with unknown keys, non-boolean flags or no value instead of applying them (#338) by @gaborbernat.
  • Resolve --envfile against the invocation directory before the project root, so --envfile ../file loads the file it names (#332) by @gaborbernat.
  • Skip directories and other non-regular entries named like a TOML configuration file during discovery (#336) by @gaborbernat.

Security

  • Report an invalid {VAR} template as a usage error that names the entry instead of printing an environment value (#335) by @gaborbernat.

Packaging

🐍 PyPI release

📜 Full Changelog