diffsync
diffsync copied to clipboard
Update dependency pytest to v7.1.2
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| pytest (source, changelog) | dev-dependencies | minor | 7.0.1 -> 7.1.2 |
Release Notes
pytest-dev/pytest
v7.1.2
pytest 7.1.2 (2022-04-23)
Bug Fixes
- #9726: An unnecessary
numpyimport insidepytest.approx{.interpreted-text role="func"} was removed. - #9820: Fix comparison of
dataclasseswithInitVar. - #9869: Increase
stacklevelfor theNODE_CTOR_FSPATH_ARGdeprecation to point to the user's code, not pytest. - #9871: Fix a bizarre (and fortunately rare) bug where the [temp_path]{.title-ref} fixture could raise an internal error while attempting to get the current user's username.
v7.1.1
pytest 7.1.1 (2022-03-17)
Bug Fixes
- #9767: Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the [site-packages]{.title-ref} directory) were not picked up.
v7.1.0
pytest 7.1.0 (2022-03-13)
Breaking Changes
-
#8838: As per our policy, the following features have been deprecated in the 6.X series and are now removed:
pytest._fillfuncargsfunction.pytest_warning_capturedhook - usepytest_warning_recordedinstead.-k -foobarsyntax - use-k 'not foobar'instead.-k foobar:syntax.pytest.collectmodule - import frompytestdirectly.
For more information consult Deprecations and Removals in the docs.
-
#9437: Dropped support for Python 3.6, which reached end-of-life at 2021-12-23.
Improvements
-
#5192: Fixed test output for some data types where
-vwould show less information.Also, when showing diffs for sequences,
-qwould produce full diffs instead of the expected diff. -
#9362: pytest now avoids specialized assert formatting when it is detected that the default
__eq__is overridden inattrsordataclasses. -
#9536: When
-vvis given on command line, show skipping and xfail reasons in full instead of truncating them to fit the terminal width. -
#9644: More information about the location of resources that led Python to raise
ResourceWarning{.interpreted-text role="class"} can now be obtained by enablingtracemalloc{.interpreted-text role="mod"}.See
resource-warnings{.interpreted-text role="ref"} for more information. -
#9678: More types are now accepted in the
idsargument to@pytest.mark.parametrize. Previously only [str]{.title-ref}, [float]{.title-ref}, [int]{.title-ref} and [bool]{.title-ref} were accepted; now [bytes]{.title-ref}, [complex]{.title-ref}, [re.Pattern]{.title-ref}, [Enum]{.title-ref} and anything with a [__name__]{.title-ref} are also accepted. -
#9692:
pytest.approx{.interpreted-text role="func"} now raises aTypeError{.interpreted-text role="class"} when given an unordered sequence (such asset{.interpreted-text role="class"}).Note that this implies that custom classes which only implement
__iter__and__len__are no longer supported as they don't guarantee order.
Bug Fixes
-
#8242: The deprecation of raising
unittest.SkipTest{.interpreted-text role="class"} to skip collection of tests during the pytest collection phase is reverted - this is now a supported feature again. -
#9493: Symbolic link components are no longer resolved in conftest paths. This means that if a conftest appears twice in collection tree, using symlinks, it will be executed twice. For example, given
tests/real/conftest.py tests/real/test_it.py tests/link -> tests/real
running
pytest testsnow imports the conftest twice, once astests/real/conftest.pyand once astests/link/conftest.py. This is a fix to match a similar change made to test collection itself in pytest 6.0 (see6523{.interpreted-text role="pull"} for details). -
#9626: Fixed count of selected tests on terminal collection summary when there were errors or skipped modules.
If there were errors or skipped modules on collection, pytest would mistakenly subtract those from the selected count.
-
#9645: Fixed regression where
--import-mode=importlibused together withPYTHONPATH{.interpreted-text role="envvar"} orpythonpath{.interpreted-text role="confval"} would cause import errors in test suites. -
#9708:
pytester{.interpreted-text role="fixture"} now requests amonkeypatch{.interpreted-text role="fixture"} fixture instead of creating one internally. This solves some issues with tests that involve pytest environment variables. -
#9730: Malformed
pyproject.tomlfiles now produce a clearer error message.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Renovate Bot.