This release is not a usual bug fix release -- it contains features and improvements, being a follow up
to 8.1.0, which has been yanked from PyPI.
:::
Features
#11475: Added the new consider_namespace_packages{.interpreted-text role="confval"} configuration option, defaulting to False.
If set to True, pytest will attempt to identify modules that are part of namespace packages when importing modules.
#11653: Added the new verbosity_test_cases{.interpreted-text role="confval"} configuration option for fine-grained control of test execution verbosity.
See Fine-grained verbosity <pytest.fine_grained_verbosity>{.interpreted-text role="ref"} for more details.
Improvements
#10865: pytest.warns{.interpreted-text role="func"} now validates that warnings.warn{.interpreted-text role="func"} was called with a [str]{.title-ref} or a [Warning]{.title-ref}.
Currently in Python it is possible to use other types, however this causes an exception when warnings.filterwarnings{.interpreted-text role="func"} is used to filter those warnings (see [CPython #103577](python/cpython#103577) for a discussion).
While this can be considered a bug in CPython, we decided to put guards in pytest as the error message produced without this check in place is confusing.
#11311: When using --override-ini for paths in invocations without a configuration file defined, the current working directory is used
as the relative directory.
Previoulsy this would raise an AssertionError{.interpreted-text role="class"}.
#11475: --import-mode=importlib <import-mode-importlib>{.interpreted-text role="ref"} now tries to import modules using the standard import mechanism (but still without changing :pysys.path{.interpreted-text role="data"}), falling back to importing modules directly only if that fails.
This means that installed packages will be imported under their canonical name if possible first, for example app.core.models, instead of having the module name always be derived from their path (for example .env310.lib.site_packages.app.core.models).
#11801: Added the iter_parents() <_pytest.nodes.Node.iter_parents>{.interpreted-text role="func"} helper method on nodes.
It is similar to listchain <_pytest.nodes.Node.listchain>{.interpreted-text role="func"}, but goes from bottom to top, and returns an iterator, not a list.
#11850: Added support for sys.last_exc{.interpreted-text role="data"} for post-mortem debugging on Python>=3.12.
#11962: In case no other suitable candidates for configuration file are found, a pyproject.toml (even without a [tool.pytest.ini_options] table) will be considered as the configuration file and define the rootdir.
#11978: Add --log-file-mode option to the logging plugin, enabling appending to log-files. This option accepts either "w" or "a" and defaults to "w".
Previously, the mode was hard-coded to be "w" which truncates the file before logging.
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 pip group with 9 updates:
0.27.1
0.28.0
1.16.0
1.16.1
1.17.0
1.18.0
1.34.54
1.34.60
9.5.12
9.5.13
8.0.2
8.1.1
6.98.17
6.99.4
1.1.352
1.1.353
0.3.0
0.3.2
Updates
uvicorn
from 0.27.1 to 0.28.0Release notes
Sourced from uvicorn's releases.
Changelog
Sourced from uvicorn's changelog.
Commits
a05ae64
Version 0.28.0 (#2269)4a503d8
Change ruff rules (#2251)0d4747e
UseX-Forwarded-Proto
for WebSockets scheme when the proxy provides it (#2258)93897b5
ExceptAttributeError
onsys.stdin.fileno()
for Windows IIS10 (#1947)ed2d655
Bump cryptography from 42.0.2 to 42.0.4 (#2253)1e5f1be
RaiseClientDisconnected
onsend()
when client disconnected (#2220)Updates
rq
from 1.16.0 to 1.16.1Release notes
Sourced from rq's releases.
Changelog
Sourced from rq's changelog.
... (truncated)
Commits
1f8e031
Bump version to 1.16.12de9491
Added worker_pool.get_worker_process()Updates
google-cloud-compute
from 1.17.0 to 1.18.0Release notes
Sourced from google-cloud-compute's releases.
Commits
c57e4a2
chore: release main (#12395)c69966f
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12384)d2cd4ff
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12388)7cd0f05
feat: add initial files for google.cloud.cloudcontrolspartner.v1 (#12402)305f43f
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12383)5535d1e
docs: [google-cloud-run]clarify some defaults and required or optional values...d5db265
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12382)12ce658
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12387)25c291a
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12390)48ae8ab
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12381)Updates
boto3-stubs
from 1.34.54 to 1.34.60Commits
Updates
mkdocs-material
from 9.5.12 to 9.5.13Release notes
Sourced from mkdocs-material's releases.
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
6ace043
Updated changelog36e9cff
Prepare 9.5.13 releasec7de6ef
Documentation (#6873)dc808ca
Updated dependencies63de275
Extended info plugin's validation message4478522
Added validation of paths to the info plugin819e209
Added projects plugin handling in the info plugin79129d5
Added exclusion logic for info plugin64a8b6a
Changed info plugin to store more platform information712bc1c
Fixed info plugin to gather all files recursivelyUpdates
pytest
from 8.0.2 to 8.1.1Release notes
Sourced from pytest's releases.
... (truncated)
Commits
81653ee
Adjust changelog manually for 8.1.1e60b4b9
Prepare release version 8.1.115fbe57
[8.1.x] Revert legacy path removals (#12093)86c3aab
[8.1.x] Do not import duplicated modules with --importmode=importlib (#12077)5b82b0c
[8.1.x] Yank version 8.1.0 (#12076)0a53681
Merge pull request #12054 from pytest-dev/release-8.1.0b9a167f
Prepare release version 8.1.000043f7
Merge pull request #12038 from bluetech/fixtures-rm-arg2indexf4e1025
Merge pull request #12048 from bluetech/fixture-teardown-excgroup43492f5
Merge pull request #12051 from jakkdl/test_debugging_pythonbreakpointUpdates
hypothesis
from 6.98.17 to 6.99.4Commits
c3b4af9
Bump hypothesis-python version to 6.99.4 and update changelog479448d
Merge pull request #3917 from JonathanPlasse/fix-typevar-default-unavailable-...c94c97d
Skip eval'd-lambda tests on py3.13 for now341a0dd
deflake test_can_generate_hard_values168df5d
Exact version465a70f
Fix mypy errorsecb4e14
Enable Python 3.13 CI tests81dff66
Add RELEASE.rst9af938d
Fix unimplemented default TypeVar argument in 3.13a4d739e0d
Bump hypothesis-python version to 6.99.3 and update changelogUpdates
pyright
from 1.1.352 to 1.1.353Commits
ba2747b
Pyright NPM Package update to 1.1.353 (#253)Updates
ruff
from 0.3.0 to 0.3.2Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
a892fc7
Bump version to v0.3.2 (#10304)a067d87
Fix incorrectParameter
range for*args
and**kwargs
(#10283)b64f2ea
Formatter: Improve single-with item formatting for Python 3.8 or older (#10276)4bce801
Fix unstable with-items formatting (#10274)a56d42f
Refactor with statement formatting to have explicit layouts (#10296)1d97f27
Start tracking quoting style in the AST (#10298)965adbe
Fix trailing kwargs end of line comment after slash (#10297)c504d7a
Track quoting style in the tokenizer (#10256)72c9f7e
Include actual conditions in E712 diagnostics (#10254)57be3fc
Treattyping.Annotated
subscripts as type definitions (#10285)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