See 8.0.0rc1 and 8.0.0rc2 for the full changes since pytest 7.4!
Bug Fixes
#11842: Properly escape the reason of a skip <pytest.mark.skip ref>{.interpreted-text role="ref"} mark when writing JUnit XML files.
#11861: Avoid microsecond exceeds 1_000_000 when using log-date-format with %f specifier, which might cause the test suite to crash.
8.0.0rc2
pytest 8.0.0rc2 (2024-01-17)
Improvements
#11233: Improvements to -r for xfailures and xpasses:
Report tracebacks for xfailures when -rx is set.
Report captured output for xpasses when -rX is set.
For xpasses, add - in summary between test name and reason, to match how xfail is displayed.
#11825: The pytest_plugin_registered{.interpreted-text role="hook"} hook has a new plugin_name parameter containing the name by which plugin is registered.
Bug Fixes
#11706: Fix reporting of teardown errors in higher-scoped fixtures when using [--maxfail]{.title-ref} or [--stepwise]{.title-ref}.
#11758: Fixed IndexError: string index out of range crash in if highlighted[-1] == "\n" and source[-1] != "\n".
This bug was introduced in pytest 8.0.0rc1.
#9765, #11816: Fixed a frustrating bug that afflicted some users with the only error being assert mod not in mods. The issue was caused by the fact that str(Path(mod)) and mod.__file__ don't necessarily produce the same string, and was being erroneously used interchangably in some places in the code.
This fix also broke the internal API of PytestPluginManager.consider_conftest by introducing a new parameter -- we mention this in case it is being used by external code, even if marked as private.
#7363: PytestRemovedIn8Warning deprecation warnings are now errors by default.
Following our plan to remove deprecated features with as little disruption as possible, all warnings of type PytestRemovedIn8Warning now generate errors instead of warning messages by default.
The affected features will be effectively removed in pytest 8.1, so please consult the deprecations{.interpreted-text role="ref"} section in the docs for directions on how to update existing code.
In the pytest 8.0.X series, it is possible to change the errors back into warnings as a stopgap measure by adding this to your pytest.ini file:
Stop removing spaces from walrus operators within subscripts (#3823)
Fix incorrect formatting of certain async statements (#3609)
Allow combining # fmt: skip with other comments (#3959)
There are already a few improvements in the --preview style, which are slated for the
2025 stable style. Try them out and
share your feedback. In the past, the preview
style has included some features that we were not able to stabilize. This year, we're
Stop removing spaces from walrus operators within subscripts (#3823)
Fix incorrect formatting of certain async statements (#3609)
Allow combining # fmt: skip with other comments (#3959)
There are already a few improvements in the --preview style, which are slated for the
2025 stable style. Try them out and
share your feedback. In the past, the preview
style has included some features that we were not able to stabilize. This year, we're
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the primary-dev-dependencies group with 5 updates:
7.4.4
8.0.0
23.12.1
24.1.1
6.1.0
7.0.0
4.11.4
4.12.1
9.5.3
9.5.6
Updates
pytest
from 7.4.4 to 8.0.0Release notes
Sourced from pytest's releases.
... (truncated)
Commits
478f823
Prepare release version 8.0.06085900
[8.0.x] fix: avoid rounding microsecond to1_000_000
(#11863)3b41c65
[8.0.x] Escape skip reason in junitxml (#11845)747072a
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (#11768)011a475
Properly attach packages to the GH release notes (#11839) (#11840)97960bd
Merge pull request #11835 from pytest-dev/release-8.0.0rc26be0a3c
Prepare release version 8.0.0rc244ffe07
Merge pull request #11837 from pytest-dev/backport-11836-to-8.0.x14ecb04
[8.0.x] testing: temporarily disable test due to hypothesis issue41c8dab
Merge pull request #11831 from bluetech/backport-11825-to-8.0.xUpdates
black
from 23.12.1 to 24.1.1Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
e026c93
Prepare release 24.1.1 (#4186)79fc115
chore: ignore node_modules (produced by a pre-commit check) (#4184)8bf0454
Consistently add trailing comma on typed parameters (#4164)1607e9a
Fix missing space in option description (#4182)ed770ba
Fix cache file length (#4176)659c29a
New changelog0e6e46b
Prepare release 24.1.0 (#4170)4f47cac
Add --unstable flag (#4096)bccec8a
Show warning on invalid toml configuration (#4165)7d78946
Describe 2024 module docstring more accurately (#4168)Updates
flake8
from 6.1.0 to 7.0.0Commits
88a4f9b
Release 7.0.06f3a60d
Merge pull request #1906 from PyCQA/upgrade-pyflakescde8570
upgrade pyflakes to 3.2.x2ab9d76
Merge pull request #1903 from PyCQA/pre-commit-ci-update-confige27611f
[pre-commit.ci] pre-commit autoupdate9d20be1
Merge pull request #1902 from PyCQA/pre-commit-ci-update-config06c1503
[pre-commit.ci] auto fixes from pre-commit.com hooksb67ce03
Fix bugbear lintsc8801c1
[pre-commit.ci] pre-commit autoupdate045f297
Merge pull request #1893 from PyCQA/pre-commit-ci-update-configUpdates
tox
from 4.11.4 to 4.12.1Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.
Commits
8eaf09f
release 4.12.137b11d4
#3165 fixed Tox failing with --installpkg and multi testenvs (#3186)fa390ce
[pre-commit.ci] pre-commit autoupdate (#3185)3b403bc
Fix tox version requirement in docs (#3184)776718c
release 4.12.0fc80080
Always pass FORCE_COLOR & NO_COLOR to the environment (#3172)659f714
Fix the CI (#3183)8406971
[pre-commit.ci] pre-commit autoupdate (#3182)3f8f53d
[pre-commit.ci] pre-commit autoupdate (#3177)61547b0
Fix 'open an issue' link in development.rst (#3179)Updates
mkdocs-material
from 9.5.3 to 9.5.6Release notes
Sourced from mkdocs-material's releases.
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
6026738
Prepare 9.5.6 releasea65fd1e
Updated distribution files335dd3a
Fixed Markdown formatted nodes in Mermaid.jsf55ce2c
Updated Insiders changelog6724141
Documentation9d52e36
Prepare 9.5.5 release943e978
Merge pull request #6662 from squidfunk/fix/instant-loading-bugs95ad78a
Merge branch 'master' into fix/instant-loading-bugsbe95f49
Fixed capturing of keyboard events for custom elements6128ab9
Updated Tagalog translationsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show