#10060: When running with --pdb, TestCase.tearDown is no longer called for tests when the class has been skipped via unittest.skip or pytest.mark.skip.
#10190: Invalid XML characters in setup or teardown error messages are now properly escaped for JUnit XML reports.
#10230: Ignore .py files created by pyproject.toml-based editable builds introduced in pip 21.3.
#3396: Doctests now respect the --import-mode flag.
#9514: Type-annotate FixtureRequest.param as Any as a stop gap measure until 8073{.interpreted-text role="issue"} is fixed.
#9791: Fixed a path handling code in rewrite.py that seems to work fine, but was incorrect and fails in some systems.
#9917: Fixed string representation for pytest.approx{.interpreted-text role="func"} when used to compare tuples.
Improved Documentation
#9937: Explicit note that tmpdir{.interpreted-text role="fixture"} fixture is discouraged in favour of tmp_path{.interpreted-text role="fixture"}.
Trivial/Internal Changes
#10114: Replace atomicwrites dependency on windows with [os.replace]{.title-ref}.
7.1.2
pytest 7.1.2 (2022-04-23)
Bug Fixes
#9726: An unnecessary numpy import inside pytest.approx{.interpreted-text role="func"} was removed.
#9820: Fix comparison of dataclasses with InitVar.
#9869: Increase stacklevel for the NODE_CTOR_FSPATH_ARG deprecation 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.
7.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.
7.1.0
pytest 7.1.0 (2022-03-13)
... (truncated)
Commits
4645bcd Remove incorrect output in how-to/fixtures.rst
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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pytest from 5.3.0 to 7.1.3.
Release notes
Sourced from pytest's releases.
... (truncated)
Commits
4645bcd
Remove incorrect output in how-to/fixtures.rstfadfb4f
Prepare release version 7.1.3ab96ea8
Merge pull request #10258 from pytest-dev/backport-10252-to-7.1.xfc0e024
[7.1.x] Fix regendoc8f5088f
Merge pull request #10249 from pytest-dev/backport-10231-to-7.1.xaae93d6
Ignore type-errors related to attr.asdict71b79fc
[7.1.x] Ignore editable installation modules89f7518
Merge pull request #10222 from pytest-dev/backport-10171-to-7.1.x88fc45b
[7.1.x] Update fixtures.rst w/ finalizer orderd0b53d6
Merge pull request #10221 from pytest-dev/backport-10217-to-7.1.xDependabot 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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)