crontabula
crontabula copied to clipboard
Bump pytest from 7.2.1 to 7.3.1
Bumps pytest from 7.2.1 to 7.3.1.
Release notes
Sourced from pytest's releases.
7.3.1
pytest 7.3.1 (2023-04-14)
Improvements
- #10875: Python 3.12 support: fixed
RuntimeError: TestResult has no addDuration methodwhen runningunittesttests.- #10890: Python 3.12 support: fixed
shutil.rmtree(onerror=...)deprecation warning when usingtmp_path{.interpreted-text role="fixture"}.Bug Fixes
- #10896: Fixed performance regression related to
tmp_path{.interpreted-text role="fixture"} and the newtmp_path_retention_policy{.interpreted-text role="confval"} option.- #10903: Fix crash
INTERNALERROR IndexError: list index out of rangewhich happens when displaying an exception where all entries are hidden. This reverts the change "Correctly handle__tracebackhide__for chained exceptions." introduced in version 7.3.0.7.3.0
pytest 7.3.0 (2023-04-08)
Features
- #10525: Test methods decorated with
@classmethodcan now be discovered as tests, following the same rules as normal methods. This fills the gap that static methods were discoverable as tests but not class methods.- #10755:
console_output_style{.interpreted-text role="confval"} now supportsprogress-even-when-capture-noto force the use of the progress output even when capture is disabled. This is useful in large test suites where capture may have significant performance impact.- #7431:
--log-disableCLI option added to disable individual loggers.- #8141: Added
tmp_path_retention_count{.interpreted-text role="confval"} andtmp_path_retention_policy{.interpreted-text role="confval"} configuration options to control how directories created by thetmp_path{.interpreted-text role="fixture"} fixture are kept.Improvements
- #10226: If multiple errors are raised in teardown, we now re-raise an
ExceptionGroupof them instead of discarding all but the last.- #10658: Allow
-parguments to include spaces (eg:-p no:logginginstead of-pno:logging). Mostly useful in theaddoptssection of the configuration file.- #10710: Added
startandstoptimestamps toTestReportobjects.- #10727: Split the report header for
rootdir,config fileandtestpathsso each has its own line.- #10840: pytest should no longer crash on AST with pathological position attributes, for example testing AST produced by [Hylang <https://github.com/hylang/hy>__]{.title-ref}.
- #6267: The full output of a test is no longer truncated if the truncation message would be longer than the hidden text. The line number shown has also been fixed.
Bug Fixes
- #10743: The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.
- #10765: Fixed
tmp_path{.interpreted-text role="fixture"} fixture always raisingOSError{.interpreted-text role="class"} onemscriptenplatform due to missingos.getuid{.interpreted-text role="func"}.- #1904: Correctly handle
__tracebackhide__for chained exceptions.Improved Documentation
... (truncated)
Commits
dab1992Prepare release version 7.3.1c3d9dac[7.3.x] Fix tmp_path regression introduced in 7.3.0 (#10912)06d7596Merge pull request #10906 from pytest-dev/backport-10904-to-7.3.xa4121aa[7.3.x] Revert "Correctly handle tracebackhide for chained exceptions (#10772)"6e26c2bMerge pull request #10898 from pytest-dev/backport-10893-to-7.3.x23cf1fe[7.3.x] Python 3.12 alpha fixes1a427d3[7.3.x] Amend changelog note for removal of attrs (#10889)cec5bfeMerge pull request #10881 from pytest-dev/release-7.3.0ef982aaPrepare release version 7.3.03683722FormattedExcinfo.get_source: avoid crash when line number is out-of-bounds/ne...- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)