chore(deps): update dependency dev/pytest to v7.3.1
Metadata
Current evaluation
Automated dependency update for dev/pytest from v7.2.2 to v7.3.1 was approved, passed CI checks, and successfully merged into the main branch.
Suggested action: —
No scores available.
Issue body
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [dev/pytest](https://docs.pytest.org/en/latest/) ([source](https://togithub.com/pytest-dev/pytest), [changelog](https://docs.pytest.org/en/stable/changelog.html)) | `==7.2.2` -> `==7.3.1` | [](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</summary>
### [`v7.3.1`](https://togithub.com/pytest-dev/pytest/releases/tag/7.3.1)
[Compare Source](https://togithub.com/pytest-dev/pytest/compare/7.3.0...7.3.1)
# pytest 7.3.1 (2023-04-14)
## Improvements
- [#​10875](https://togithub.com/pytest-dev/pytest/issues/10875): Python 3.12 support: fixed `RuntimeError: TestResult has no addDuration method` when running `unittest` tests.
- [#​10890](https://togithub.com/pytest-dev/pytest/issues/10890): Python 3.12 support: fixed `shutil.rmtree(onerror=...)` deprecation warning when using `tmp_path`{.interpreted-text role="fixture"}.
## Bug Fixes
- [#​10896](https://togithub.com/pytest-dev/pytest/issues/10896): Fixed performance regression related to `tmp_path`{.interpreted-text role="fixture"} and the new `tmp_path_retention_policy`{.interpreted-text role="confval"} option.
- [#​10903](https://togithub.com/pytest-dev/pytest/issues/10903): Fix crash `INTERNALERROR IndexError: list index out of range` which 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.
### [`v7.3.0`](https://togithub.com/pytest-dev/pytest/releases/tag/7.3.0)
[Compare Source](https://togithub.com/pytest-dev/pytest/compare/7.2.2...7.3.0)
# pytest 7.3.0 (2023-04-08)
## Features
- [#​10525](https://togithub.com/pytest-dev/pytest/issues/10525): Test methods decorated with `@classmethod` can 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](https://togithub.com/pytest-dev/pytest/issues/10755): `console_output_style`{.interpreted-text role="confval"} now supports `progress-even-when-capture-no` to 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](https://togithub.com/pytest-dev/pytest/issues/7431): `--log-disable` CLI option added to disable individual loggers.
- [#​8141](https://togithub.com/pytest-dev/pytest/issues/8141): Added `tmp_path_retention_count`{.interpreted-text role="confval"} and `tmp_path_retention_policy`{.interpreted-text role="confval"} configuration options to control how directories created by the `tmp_path`{.interpreted-text role="fixture"} fixture are kept.
## Improvements
- [#​10226](https://togithub.com/pytest-dev/pytest/issues/10226): If multiple errors are raised in teardown, we now re-raise an `ExceptionGroup` of them instead of discarding all but the last.
- [#​10658](https://togithub.com/pytest-dev/pytest/issues/10658): Allow `-p` arguments to include spaces (eg: `-p no:logging` instead of
`-pno:logging`). Mostly useful in the `addopts` section of the configuration
file.
- [#​10710](https://togithub.com/pytest-dev/pytest/issues/10710): Added `start` and `stop` timestamps to `TestReport` objects.
- [#​10727](https://togithub.com/pytest-dev/pytest/issues/10727): Split the report header for `rootdir`, `config file` and `testpaths` so each has its own line.
- [#​10840](https://togithub.com/pytest-dev/pytest/issues/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](https://togithub.com/pytest-dev/pytest/issues/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](https://togithub.com/pytest-dev/pytest/issues/10743): The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.
- [#​10765](https://togithub.com/pytest-dev/pytest/issues/10765): Fixed `tmp_path`{.interpreted-text role="fixture"} fixture always raising `OSError`{.interpreted-text role="class"} on `emscripten` platform due to missing `os.getuid`{.interpreted-text role="func"}.
- [#​1904](https://togithub.com/pytest-dev/pytest/issues/1904): Correctly handle `__tracebackhide__` for chained exceptions.
## Improved Documentation
- [#​10782](https://togithub.com/pytest-dev/pytest/issues/10782): Fixed the minimal example in `goodpractices`{.interpreted-text role="ref"}: `pip install -e .` requires a `version` entry in `pyproject.toml` to run successfully.
## Trivial/Internal Changes
- [#​10669](https://togithub.com/pytest-dev/pytest/issues/10669): pytest no longer depends on the \[attrs]{.title-ref} package (don't worry, nice diffs for attrs classes are still supported).
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - "every weekend" in timezone Etc/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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/canonical/starbase).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45NS4xIiwidXBkYXRlZEluVmVyIjoiMzUuOTUuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Automated dependency update for dev/pytest from v7.2.2 to v7.3.1 was approved, passed CI checks, and successfully merged into the main branch. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged automated dependency update upgrading dev/pytest from v7.2.2 to v7.3.1. The PR was successfully integrated without conflicts. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #18 chore(deps): update dependency pytest to v7.2.1 | starbase | merged | Upgraded pytest dependency from v7.0.0 to v7.2.1. The automated pull request passed CI checks, received reviewer approval, and was successfully merged. | |
| #64 chore(deps): update dependency pytest to v7.3.1 | craft-archives | merged | Dependency update for pytest to v7.3.1 via Renovate bot. The pull request received approval, passed all CI checks, and was successfully merged into the main branch. | |
| #9 chore(deps): update dependency pytest to v7.2.1 | craft-archives | merged | Merged a Renovate-generated dependency update upgrading pytest from v7.0.0 to v7.2.1. The change passed CI checks, received reviewer approval, and was successfully merged into the codebase. | |
| #182 chore(deps): update dependency dev/pytest to v8 | craft-application | merged | Merged automated dependency update upgrading dev/pytest from 7.4.3 to 8.0.0. Approved by two reviewers, passed CI checks, and maintained 99.22% test coverage. | |
| #172 chore(deps): update dependency dev/pytest to v8 | starbase | merged | Merged automated dependency update upgrading dev/pytest from v7.4.4 to v8.0.0. Approved by two reviewers, passed CI checks, and maintained 100% test coverage. | |
| #95 chore(deps): update development dependencies (non-major) | starbase | merged | Merged automated updates for pytest (7.3.1 to 7.3.2) and types/pyright (1.1.311 to 1.1.313). Changes were approved, passed CI, and merged into main. | |
| #169 chore(deps): update dependency dev/pytest to v8 | craft-store | merged | Merged automated dependency update upgrading pytest from 7.4.4 to 8.1.1. Approved by two reviewers, passed CI, and modified one file. The update applies pytest 8.x features and bug fixes to the project. | |
| #547 chore(deps): update dependency pytest to v8.1.1 | rockcraft | merged | Merged automated dependency update upgrading pytest from v8.0.0 to v8.1.1. The change passed CI checks, received two approvals, and was successfully integrated into the main branch. | |
| #226 chore(deps): update dependency dev/pytest to v8 | craft-cli | merged | Merged automated dependency update upgrading pytest from v7.4.4 to v8.0.0. Approved by two reviewers, passed CI and codecov checks, and successfully merged. | |
| #1173 chore(deps): update dependency pytest to v7.4.0 - autoclosed | charmcraft | closed | Automated dependency update for pytest to v7.4.0 was autoclosed without merging. The pull request was abandoned, likely superseded by newer updates or intentionally ignored by maintainers. |