Commit 8efb3b6
authored
chore(deps): update dependency pytest to v8.3.5 (ni#31)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pytest](https://redirect.github.com/pytest-dev/pytest)
([changelog](https://docs.pytest.org/en/stable/changelog.html)) |
`8.2.2` -> `8.3.5` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>pytest-dev/pytest (pytest)</summary>
###
[`v8.3.5`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.5)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.4...8.3.5)
### pytest 8.3.5 (2025-03-02)
#### Bug fixes
-
[#​11777](https://redirect.github.com/pytest-dev/pytest/issues/11777):
Fixed issue where sequences were still being shortened even with `-vv`
verbosity.
-
[#​12888](https://redirect.github.com/pytest-dev/pytest/issues/12888):
Fixed broken input when using Python 3.13+ and a `libedit` build of
Python, such as on macOS or with uv-managed Python binaries from the
`python-build-standalone` project. This could manifest e.g. by a broken
prompt when using `Pdb`, or seeing empty inputs with manual usage of
`input()` and suspended capturing.
-
[#​13026](https://redirect.github.com/pytest-dev/pytest/issues/13026):
Fixed `AttributeError`{.interpreted-text role="class"} crash when using
`--import-mode=importlib` when top-level directory same name as another
module of the standard library.
-
[#​13053](https://redirect.github.com/pytest-dev/pytest/issues/13053):
Fixed a regression in pytest 8.3.4 where, when using
`--import-mode=importlib`, a directory containing py file with the same
name would cause an `ImportError`
-
[#​13083](https://redirect.github.com/pytest-dev/pytest/issues/13083):
Fixed issue where pytest could crash if one of the collected directories
got removed during collection.
#### Improved documentation
-
[#​12842](https://redirect.github.com/pytest-dev/pytest/issues/12842):
Added dedicated page about using types with pytest.
See `types`{.interpreted-text role="ref"} for detailed usage.
#### Contributor-facing changes
-
[#​13112](https://redirect.github.com/pytest-dev/pytest/issues/13112):
Fixed selftest failures in `test_terminal.py` with Pygments >= 2.19.0
-
[#​13256](https://redirect.github.com/pytest-dev/pytest/issues/13256):
Support for Towncrier versions released in 2024 has been re-enabled
when building Sphinx docs -- by `webknjaz`{.interpreted-text
role="user"}.
###
[`v8.3.4`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.4)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.3...8.3.4)
### pytest 8.3.4 (2024-12-01)
#### Bug fixes
-
[#​12592](https://redirect.github.com/pytest-dev/pytest/issues/12592):
Fixed `KeyError`{.interpreted-text role="class"} crash when using
`--import-mode=importlib` in a directory layout where a directory
contains a child directory with the same name.
-
[#​12818](https://redirect.github.com/pytest-dev/pytest/issues/12818):
Assertion rewriting now preserves the source ranges of the original
instructions, making it play well with tools that deal with the `AST`,
like [executing](https://redirect.github.com/alexmojaki/executing).
-
[#​12849](https://redirect.github.com/pytest-dev/pytest/issues/12849):
ANSI escape codes for colored output now handled correctly in
`pytest.fail`{.interpreted-text role="func"} with
\[pytrace=False]{.title-ref}.
-
[#​9353](https://redirect.github.com/pytest-dev/pytest/issues/9353):
`pytest.approx`{.interpreted-text role="func"} now uses strict equality
when given booleans.
#### Improved documentation
-
[#​10558](https://redirect.github.com/pytest-dev/pytest/issues/10558):
Fix ambiguous docstring of `pytest.Config.getoption`{.interpreted-text
role="func"}.
-
[#​10829](https://redirect.github.com/pytest-dev/pytest/issues/10829):
Improve documentation on the current handling of the `--basetemp` option
and its lack of retention functionality (`temporary directory location
and retention`{.interpreted-text role="ref"}).
-
[#​12866](https://redirect.github.com/pytest-dev/pytest/issues/12866):
Improved cross-references concerning the `recwarn`{.interpreted-text
role="fixture"} fixture.
-
[#​12966](https://redirect.github.com/pytest-dev/pytest/issues/12966):
Clarify `filterwarnings`{.interpreted-text role="ref"} docs on filter
precedence/order when using multiple `@pytest.mark.filterwarnings
<pytest.mark.filterwarnings ref>`{.interpreted-text role="ref"} marks.
#### Contributor-facing changes
-
[#​12497](https://redirect.github.com/pytest-dev/pytest/issues/12497):
Fixed two failing pdb-related tests on Python 3.13.
###
[`v8.3.3`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.3)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.2...8.3.3)
# pytest 8.3.3 (2024-09-09)
## Bug fixes
-
[#​12446](https://redirect.github.com/pytest-dev/pytest/issues/12446):
Avoid calling `@property` (and other instance descriptors) during
fixture discovery -- by `asottile`{.interpreted-text role="user"}
-
[#​12659](https://redirect.github.com/pytest-dev/pytest/issues/12659):
Fixed the issue of not displaying assertion failure differences when
using the parameter `--import-mode=importlib` in pytest>=8.1.
-
[#​12667](https://redirect.github.com/pytest-dev/pytest/issues/12667):
Fixed a regression where type change in
\[ExceptionInfo.errisinstance]{.title-ref} caused \[mypy]{.title-ref} to
fail.
-
[#​12744](https://redirect.github.com/pytest-dev/pytest/issues/12744):
Fixed typing compatibility with Python 3.9 or less -- replaced
\[typing.Self]{.title-ref} with \[typing_extensions.Self]{.title-ref} --
by `Avasam`{.interpreted-text role="user"}
-
[#​12745](https://redirect.github.com/pytest-dev/pytest/issues/12745):
Fixed an issue with backslashes being incorrectly converted in nodeid
paths on Windows, ensuring consistent path handling across environments.
-
[#​6682](https://redirect.github.com/pytest-dev/pytest/issues/6682):
Fixed bug where the verbosity levels where not being respected when
printing the "msg" part of failed assertion (as in `assert condition,
msg`).
-
[#​9422](https://redirect.github.com/pytest-dev/pytest/issues/9422):
Fix bug where disabling the terminal plugin via `-p no:terminal` would
cause crashes related to missing the `verbose` option.
\-- by `GTowers1`{.interpreted-text role="user"}
## Improved documentation
-
[#​12663](https://redirect.github.com/pytest-dev/pytest/issues/12663):
Clarify that the \[pytest_deselected]{.title-ref} hook should be called
from \[pytest_collection_modifyitems]{.title-ref} hook implementations
when items are deselected.
-
[#​12678](https://redirect.github.com/pytest-dev/pytest/issues/12678):
Remove erroneous quotes from \[tmp_path_retention_policy]{.title-ref}
example in docs.
## Miscellaneous internal changes
-
[#​12769](https://redirect.github.com/pytest-dev/pytest/issues/12769):
Fix typos discovered by codespell and add codespell to pre-commit hooks.
###
[`v8.3.2`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.2)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.1...8.3.2)
# pytest 8.3.2 (2024-07-24)
## Bug fixes
-
[#​12652](https://redirect.github.com/pytest-dev/pytest/issues/12652):
Resolve regression \[conda]{.title-ref} environments where no longer
being automatically detected.
\-- by `RonnyPfannschmidt`{.interpreted-text role="user"}
###
[`v8.3.1`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.1)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.3.0...8.3.1)
# pytest 8.3.1 (2024-07-20)
The 8.3.0 release failed to include the change notes and docs for the
release. This patch release remedies this. There are no other changes.
###
[`v8.3.0`](https://redirect.github.com/pytest-dev/pytest/releases/tag/8.3.0)
[Compare
Source](https://redirect.github.com/pytest-dev/pytest/compare/8.2.2...8.3.0)
##### pytest 8.3.0 (2024-07-20)
##### New features
-
[#​12231](https://redirect.github.com/pytest-dev/pytest/issues/12231):
Added \[--xfail-tb]{.title-ref} flag, which turns on traceback output
for XFAIL results.
- If the \[--xfail-tb]{.title-ref} flag is not given, tracebacks for
XFAIL results are NOT shown.
- The style of traceback for XFAIL is set with \[--tb]{.title-ref}, and
can be \[auto|long|short|line|native|no]{.title-ref}.
- Note: Even if you have \[--xfail-tb]{.title-ref} set, you won't see
them if \[--tb=no]{.title-ref}.
Some history:
With pytest 8.0, \[-rx]{.title-ref} or \[-ra]{.title-ref} would not only
turn on summary reports for xfail, but also report the tracebacks for
xfail results. This caused issues with some projects that utilize xfail,
but don't want to see all of the xfail tracebacks.
This change detaches xfail tracebacks from \[-rx]{.title-ref}, and now
we turn on xfail tracebacks with \[--xfail-tb]{.title-ref}. With this,
the default \[-rx]{.title-ref}/ \[-ra]{.title-ref} behavior is identical
to pre-8.0 with respect to xfail tracebacks. While this is a behavior
change, it brings default behavior back to pre-8.0.0 behavior, which
ultimately was considered the better course of action.
-
[#​12281](https://redirect.github.com/pytest-dev/pytest/issues/12281):
Added support for keyword matching in marker expressions.
Now tests can be selected by marker keyword arguments.
Supported values are `int`{.interpreted-text role="class"}, (unescaped)
`str`{.interpreted-text role="class"}, `bool`{.interpreted-text
role="class"} & `None`{.interpreted-text role="data"}.
See `marker examples
<marker_keyword_expression_example>`{.interpreted-text role="ref"} for
more information.
\-- by `lovetheguitar`{.interpreted-text role="user"}
-
[#​12567](https://redirect.github.com/pytest-dev/pytest/issues/12567):
Added `--no-fold-skipped` command line option.
If this option is set, then skipped tests in short summary are no longer
grouped
by reason but all tests are printed individually with their nodeid in
the same
way as other statuses.
\-- by `pbrezina`{.interpreted-text role="user"}
##### Improvements in existing functionality
-
[#​12469](https://redirect.github.com/pytest-dev/pytest/issues/12469):
The console output now uses the "third-party plugins" terminology,
replacing the previously established but confusing and outdated
reference to `setuptools <setuptools:index>`{.interpreted-text
role="std:doc"}
\-- by `webknjaz`{.interpreted-text role="user"}.
-
[#​12544](https://redirect.github.com/pytest-dev/pytest/issues/12544),
[#​12545](https://redirect.github.com/pytest-dev/pytest/issues/12545):
Python virtual environment detection was improved by
checking for a `pyvenv.cfg`{.interpreted-text role="file"} file,
ensuring reliable detection on
various platforms -- by `zachsnickers`{.interpreted-text role="user"}.
-
[#​2871](https://redirect.github.com/pytest-dev/pytest/issues/2871):
Do not truncate arguments to functions in output when running with
\[-vvv]{.title-ref}.
-
[#​389](https://redirect.github.com/pytest-dev/pytest/issues/389):
The readability of assertion introspection of bound methods has been
enhanced
\-- by `farbodahm`{.interpreted-text role="user"},
`webknjaz`{.interpreted-text role="user"},
`obestwalter`{.interpreted-text role="user"}, `flub`{.interpreted-text
role="user"}
and `glyphack`{.interpreted-text role="user"}.
Earlier, it was like:
```console
=================================== FAILURES
===================================
_____________________________________ test
_____________________________________
def test():
> assert Help().fun() == 2
E assert 1 == 2
E + where 1 = <bound method Help.fun of <example.Help instance at
0x256a830>>()
E + where <bound method Help.fun of <example.Help instance at
0x256a830>> = <example.Help instance at 0x256a830>.fun
E + where <example.Help instance at 0x256a830> = Help()
example.py:7: AssertionError
=========================== 1 failed in 0.03 seconds
===========================
```
And now it's like:
```console
=================================== FAILURES
===================================
_____________________________________ test
_____________________________________
def test():
> assert Help().fun() == 2
E assert 1 == 2
E + where 1 = fun()
E + where fun = <test_local.Help object at 0x1074be230>.fun
E + where <test_local.Help object at 0x1074be230> = Help()
test_local.py:13: AssertionError
=========================== 1 failed in 0.03 seconds
===========================
```
-
[#​7662](https://redirect.github.com/pytest-dev/pytest/issues/7662):
Added timezone information to the testsuite timestamp in the JUnit XML
report.
##### Bug fixes
-
[#​11706](https://redirect.github.com/pytest-dev/pytest/issues/11706):
Fixed reporting of teardown errors in higher-scoped fixtures when using
\[--maxfail]{.title-ref} or \[--stepwise]{.title-ref}.
Originally added in pytest 8.0.0, but reverted in 8.0.2 due to a
regression in pytest-xdist.
This regression was fixed in pytest-xdist 3.6.1.
-
[#​11797](https://redirect.github.com/pytest-dev/pytest/issues/11797):
`pytest.approx`{.interpreted-text role="func"} now correctly handles
`Sequence <collections.abc.Sequence>`{.interpreted-text
role="class"}-like objects.
-
[#​12204](https://redirect.github.com/pytest-dev/pytest/issues/12204),
[#​12264](https://redirect.github.com/pytest-dev/pytest/issues/12264):
Fixed a regression in pytest 8.0 where tracebacks get longer and longer
when multiple
tests fail due to a shared higher-scope fixture which raised -- by
`bluetech`{.interpreted-text role="user"}.
Also fixed a similar regression in pytest 5.4 for collectors which raise
during setup.
The fix necessitated internal changes which may affect some plugins:
- `FixtureDef.cached_result[2]` is now a tuple `(exc, tb)`
instead of `exc`.
- `SetupState.stack` failures are now a tuple `(exc, tb)`
instead of `exc`.
-
[#​12275](https://redirect.github.com/pytest-dev/pytest/issues/12275):
Fixed collection error upon encountering an `abstract
<abc>`{.interpreted-text role="mod"} class, including abstract
\[unittest.TestCase]{.title-ref} subclasses.
-
[#​12328](https://redirect.github.com/pytest-dev/pytest/issues/12328):
Fixed a regression in pytest 8.0.0 where package-scoped parameterized
items were not correctly reordered to minimize setups/teardowns in some
cases.
-
[#​12424](https://redirect.github.com/pytest-dev/pytest/issues/12424):
Fixed crash with \[assert testcase is not None]{.title-ref} assertion
failure when re-running unittest tests using plugins like
pytest-rerunfailures. Regressed in 8.2.2.
-
[#​12472](https://redirect.github.com/pytest-dev/pytest/issues/12472):
Fixed a crash when returning category `"error"` or `"failed"` with a
custom test status from `pytest_report_teststatus`{.interpreted-text
role="hook"} hook -- `pbrezina`{.interpreted-text role="user"}.
-
[#​12505](https://redirect.github.com/pytest-dev/pytest/issues/12505):
Improved handling of invalid regex patterns in
`pytest.raises(match=r'...') <pytest.raises>`{.interpreted-text
role="func"} by providing a clear error message.
-
[#​12580](https://redirect.github.com/pytest-dev/pytest/issues/12580):
Fixed a crash when using the cache class on Windows and the cache
directory was created concurrently.
-
[#​6962](https://redirect.github.com/pytest-dev/pytest/issues/6962):
Parametrization parameters are now compared using \[==]{.title-ref}
instead of \[is]{.title-ref} (\[is]{.title-ref} is still used as a
fallback if the parameter does not support \[==]{.title-ref}).
This fixes use of parameters such as lists, which have a different
\[id]{.title-ref} but compare equal, causing fixtures to be re-computed
instead of being cached.
-
[#​7166](https://redirect.github.com/pytest-dev/pytest/issues/7166):
Fixed progress percentages (the `[ 87%]` at the edge of the screen)
sometimes not aligning correctly when running with pytest-xdist `-n`.
##### Improved documentation
-
[#​12153](https://redirect.github.com/pytest-dev/pytest/issues/12153):
Documented using `PYTEST_VERSION`{.interpreted-text role="envvar"} to
detect if code is running from within a pytest run.
-
[#​12469](https://redirect.github.com/pytest-dev/pytest/issues/12469):
The external plugin mentions in the documentation now avoid mentioning
`setuptools entry-points <setuptools:index>`{.interpreted-text
role="std:doc"} as the concept is
much more generic nowadays. Instead, the terminology of "external",
"installed", or "third-party" plugins (or packages) replaces that.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12577](https://redirect.github.com/pytest-dev/pytest/issues/12577):
\[CI]{.title-ref} and \[BUILD_NUMBER]{.title-ref} environment variables
role is discribed in
the reference doc. They now also appear when doing \[pytest
-h]{.title-ref}
\-- by `MarcBresson`{.interpreted-text role="user"}.
##### Contributor-facing changes
-
[#​12467](https://redirect.github.com/pytest-dev/pytest/issues/12467):
Migrated all internal type-annotations to the python3.10+ style by using
the \[annotations]{.title-ref} future import.
\-- by `RonnyPfannschmidt`{.interpreted-text role="user"}
-
[#​11771](https://redirect.github.com/pytest-dev/pytest/issues/11771),
[#​12557](https://redirect.github.com/pytest-dev/pytest/issues/12557):
The PyPy runtime version has been updated to 3.9 from 3.8 that
introduced
a flaky bug at the garbage collector which was not expected to fix there
as the 3.8 is EoL.
\-- by `x612skm`{.interpreted-text role="user"}
-
[#​12493](https://redirect.github.com/pytest-dev/pytest/issues/12493):
The change log draft preview integration has been refactored to use a
third party extension `sphinxcontib-towncrier`. The previous in-repo
script was putting the change log preview file at
`doc/en/_changelog_towncrier_draft.rst`{.interpreted-text role="file"}.
Said file is no longer
ignored in Git and might show up among untracked files in the
development environments of the contributors. To address that, the
contributors can run the following command that will clean it up:
```console
$ git clean -x -i -- doc/en/_changelog_towncrier_draft.rst
```
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12498](https://redirect.github.com/pytest-dev/pytest/issues/12498):
All the undocumented `tox` environments now have descriptions.
They can be listed in one's development environment by invoking
`tox -av` in a terminal.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12501](https://redirect.github.com/pytest-dev/pytest/issues/12501):
The changelog configuration has been updated to introduce more accurate
audience-tailored categories. Previously, there was a `trivial`
change log fragment type with an unclear and broad meaning. It was
removed and we now have `contrib`, `misc` and `packaging` in
place of it.
The new change note types target the readers who are downstream
packagers and project contributors. Additionally, the miscellaneous
section is kept for unspecified updates that do not fit anywhere else.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12502](https://redirect.github.com/pytest-dev/pytest/issues/12502):
The UX of the GitHub automation making pull requests to update the
plugin list has been updated. Previously, the maintainers had to close
the automatically created pull requests and re-open them to trigger the
CI runs. From now on, they only need to click the \[Ready for
review]{.title-ref}
button instead.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12522](https://redirect.github.com/pytest-dev/pytest/issues/12522):
The `:pull:` RST role has been replaced with a shorter
`:pr:` due to starting to use the implementation from
the third-party `sphinx-issues`{.interpreted-text role="pypi"} Sphinx
extension
\-- by `webknjaz`{.interpreted-text role="user"}.
-
[#​12531](https://redirect.github.com/pytest-dev/pytest/issues/12531):
The coverage reporting configuration has been updated to exclude
pytest's own tests marked as expected to fail from the coverage
report. This has an effect of reducing the influence of flaky
tests on the resulting number.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12533](https://redirect.github.com/pytest-dev/pytest/issues/12533):
The `extlinks` Sphinx extension is no longer enabled. The `:bpo:`
role it used to declare has been removed with that. BPO itself has
migrated to GitHub some years ago and it is possible to link the
respective issues by using their GitHub issue numbers and the
`:issue:` role that the `sphinx-issues` extension implements.
\-- by `webknjaz`{.interpreted-text role="user"}
-
[#​12562](https://redirect.github.com/pytest-dev/pytest/issues/12562):
Possible typos in using the `:user:` RST role is now being linted
through the pre-commit tool integration -- by
`webknjaz`{.interpreted-text role="user"}.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 **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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/ni/nisync-python).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC43LjEiLCJ1cGRhdGVkSW5WZXIiOiI0MC43LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent d218fe6 commit 8efb3b6
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments