#10447: Markers are now considered in the reverse mro order to ensure base class markers are considered first -- this resolves a regression.
#11239: Fixed := in asserts impacting unrelated test cases.
#11439: Handled an edge case where :data:sys.stderr might already be closed when :ref:faulthandler is tearing down.
pytest 7.4.2 (2023-09-07)
Bug Fixes
#11237: Fix doctest collection of functools.cached_property objects.
#11306: Fixed bug using --importmode=importlib which would cause package __init__.py files to be imported more than once in some cases.
#11367: Fixed bug where user_properties where not being saved in the JUnit XML file if a fixture failed during teardown.
#11394: Fixed crash when parsing long command line arguments that might be interpreted as files.
Improved Documentation
#11391: Improved disclaimer on pytest plugin reference page to better indicate this is an automated, non-curated listing.
pytest 7.4.1 (2023-09-02)
Bug Fixes
#10337: Fixed bug where fake intermediate modules generated by --import-mode=importlib would not include the
child modules as attributes of the parent modules.
#10702: Fixed error assertion handling in pytest.approx when None is an expected or received value when comparing dictionaries.
#10811: Fixed issue when using --import-mode=importlib together with --doctest-modules that caused modules
to be imported more than once, causing problems with modules that have import side effects.
The library provides useful fixtures for creation test aiohttp server and client.
Installation
.. code-block:: console
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration <https://docs.pytest.org/en/latest/customize.html>_ (see pytest-asyncio modes <https://github.com/pytest-dev/pytest-asyncio#modes>_ for details). The plugin works
with strict mode also.
Usage
Write tests in pytest-asyncio <https://github.com/pytest-dev/pytest-asyncio>_ style
using provided fixtures for aiohttp test server and client creation. The plugin provides
resources cleanup out-of-the-box.
Improve backwards compatibility with deprecated CLI practices. (#4048)
v68.2.1
Bugfixes
Avoid using caching attributes in Distribution.metadata for requirements.
This is done for backwards compatibility with customizations that attempt to
modify install_requires or extras_require at a late point (still not
recommended). (#4043)
Rework how setuptools internally handles dependencies/install_requires
and optional-dependencies/extras_require. (#3903)
Improve the generated PKG-INFO files, by adding Requires-Dist fields.
Previously, these fields would be omitted in favour of a non-standard
*.egg-info/requires.txt file (which is still generated for the time being). (#3904)
Improve atomicity when writing PKG-INFO files to avoid race
conditions with importlib.metadata. (#3904)
Bugfixes
Fix the name given to the *-nspkg.pth files in editable installs,
ensuring they are unique per distribution. (#4041)
Workaround some limitations on pkg_resources-style legacy namespaces in
the meta path finder for editable installations. (#4041)
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 packages group with 6 updates:
7.4.0
7.4.3
1.0.4
1.0.5
1.1.320
1.1.333
23.7.0
23.10.1
68.0.0
68.2.2
0.41.1
0.41.3
Updates
pytest
from 7.4.0 to 7.4.3Release notes
Sourced from pytest's releases.
Commits
2390610
Tweak changelog.rsta0714aa
Prepare release version 7.4.344ad1c9
[7.4.x] fix #10447 - consider marks in reverse mro order to give base classes...5dc7725
[7.4.x] Ensure logging tests always cleanup after themselves (#11541)a517827
[7.4.x] Configure ReadTheDocs to fail on warnings (#11540)21fe071
[7.4.x] fix for ValueError raised in faulthandler teardown code (#11455)f8bb857
Force terminal width when running tests (#11425) (#11432)1944dc0
[7.4.x] Fix --import-mode=importlib when root contains__init__.py
file (#1...946634c
Merge pull request #11419 from nicoddemus/backport-11414-to-7.4.xd849a3e
[7.4.x] fix: closes #11343's [attr-defined] type errors (#11421)Updates
pytest-aiohttp
from 1.0.4 to 1.0.5Release notes
Sourced from pytest-aiohttp's releases.
... (truncated)
Changelog
Sourced from pytest-aiohttp's changelog.
Commits
74b6faf
Release 1.0.521112c0
[pre-commit.ci] pre-commit autoupdate (#51)e8c8cfd
[pre-commit.ci] pre-commit autoupdate (#45)49d9b35
Add CodeQL workflow for GitHub code scanning (#46)a6a2533
Usepytest.hookimpl
inpytest_configure
(#49)9aea81e
Update check-jsonschema URL and version (#48)a2c68a8
[pre-commit.ci] pre-commit autoupdate (#44)74afa87
[pre-commit.ci] pre-commit autoupdate (#42)fca6a97
[pre-commit.ci] pre-commit autoupdate (#41)a4218fa
[pre-commit.ci] pre-commit autoupdate (#39)Updates
pyright
from 1.1.320 to 1.1.333Commits
e8119f8
Pyright NPM Package update to 1.1.333 (#224)b2a30f0
[pyright updated to 1.1.332] Update Version (#223)4e61282
[pyright updated to 1.1.331] Update Version (#222)081ff79
feat(package): release v1.1.330.post069a9228
feat(package): add classifier for 3.12 support79ce523
Ensure postfix is added to a global target (#220)45de41c
feat(ci): test on windows as well (#10)37b19be
ci: test Python 3.12 (#221)18c0ce0
[pyright updated to 1.1.330] Update Version (#218)316becd
[pyright updated to 1.1.329] Update Version (#215)Updates
black
from 23.7.0 to 23.10.1Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
744d23b
Prepare release 23.10.1 (#3969)8de4be5
Fix CI failing (#3957)c0adca3
docs: specifies the use of the .git-blame-ignore-revs file (#3961)a7643fa
Add summary parameter to action (#3958)d291c23
Move Docker image to hatch + compile (#3965)7f1c578
Bump peter-evans/create-or-update-comment from 3.0.2 to 3.1.0 (#3966)2db5ab0
Allow empty line after block open before a comment or compound statement (#3967)0a37888
Fix typos in CHANGES.md (#3963)882d879
Fix merging implicit multiline strings that have inline comments (#3956)9edba85
Prepare release 23.10.0 (#3951)Updates
setuptools
from 68.0.0 to 68.2.2Changelog
Sourced from setuptools's changelog.
... (truncated)
Commits
2255e63
Bump version: 68.2.1 → 68.2.274cc26c
Improve backwards compatibility with deprecated CLI practices (#4048)e3d5edd
Fix import statement on quickstart guide (#4049)5f29762
fix import statement on quickstart guidefacbb75
Add news fragment7b7971e
Set requirements attributes directly into dist when parsing pyproject.toml566f294
Test command line parsing of '--version' interoperates with pyproject.toml0120605
Bump version: 68.2.0 → 68.2.16e1bd6b
Fix bumpversion stated30aaa5
Update test deps (#4045)Updates
wheel
from 0.41.1 to 0.41.3Release notes
Sourced from wheel's releases.
Changelog
Sourced from wheel's changelog.
... (truncated)
Commits
a899f1c
Fixed parameter for release-notes254ba46
Created a new release6f33736
Updated actions and added GitHub release automation83b77e5
Replacedblack
withruff-format
3f829cc
Updated vendoredpackaging
to 23.2e59ae03
Also test on Python 3.13 (#580)0833f0e
Fix ABI tag for CPython 3.13 on Windows (#578)5960057
[pre-commit.ci] pre-commit autoupdate (#579)dc1b9f9
[pre-commit.ci] pre-commit autoupdate (#574)d9e5029
[pre-commit.ci] pre-commit autoupdate (#572)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