Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest requirement from ~=7.2 to ~=7.3 #8562

Merged
merged 2 commits into from
Apr 23, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 10, 2023

Updates the requirements on pytest to permit the latest version.

Release notes

Sourced from pytest's releases.

7.3.0

pytest 7.3.0 (2023-04-08)

Features

  • #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: 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: --log-disable CLI option added to disable individual loggers.
  • #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: If multiple errors are raised in teardown, we now re-raise an ExceptionGroup of them instead of discarding all but the last.
  • #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: Added start and stop timestamps to TestReport objects.
  • #10727: Split the report header for rootdir, config file and testpaths so 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 raising OSError{.interpreted-text role="class"} on emscripten platform due to missing os.getuid{.interpreted-text role="func"}.
  • #1904: Correctly handle __tracebackhide__ for chained exceptions.

Improved Documentation

  • #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: pytest no longer depends on the [attrs]{.title-ref} package (don't worry, nice diffs for attrs classes are still supported).
Commits
  • ef982aa Prepare release version 7.3.0
  • 3683722 FormattedExcinfo.get_source: avoid crash when line number is out-of-bounds/ne...
  • 31d0b51 [automated] Update plugin list (#10857)
  • 2d2f69d Merge pull request #10862 from pytest-dev/pre-commit-ci-update-config
  • 2a39ed3 [pre-commit.ci] pre-commit autoupdate
  • a3b3906 [automated] Update plugin list (#10838)
  • 172c832 [automated] Update plugin list (#10823)
  • 839b90d build(deps): Bump peter-evans/create-pull-request from 4.2.3 to 4.2.4 (#10828)
  • 549cc51 build(deps): Bump pytest-asyncio in /testing/plugins_integration (#10827)
  • 2369bed Merge pull request #10727 from RonnyPfannschmidt/ronny/split-report-header
  • Additional commits viewable in compare view

You can trigger a rebase of this PR 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)

@dependabot dependabot bot added dependency Label for github dependabot Skip news 🔇 This change does not require a changelog entry labels Apr 10, 2023
@github-actions

This comment has been minimized.

@Pierre-Sassoulas
Copy link
Member

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/pip/pytest-approx-eq-7.3 branch from cb06fcf to a91466a Compare April 10, 2023 19:08
@github-actions
Copy link
Contributor

🤖 Effect of this PR on checked open source code: 🤖

Effect on pytest:
The following messages are no longer emitted:

  1. no-name-in-module:
    No name 'cleanup_dead_symlink' in module '_pytest.pathlib'
    https://github.com/pytest-dev/pytest/blob/be9faa68d8887a071acb9b6ad3937be444e60008/src/_pytest/tmpdir.py#L31
  2. no-name-in-module:
    No name 'get_user_id' in module '_pytest.compat'
    https://github.com/pytest-dev/pytest/blob/be9faa68d8887a071acb9b6ad3937be444e60008/src/_pytest/tmpdir.py#L32

This comment was generated for commit a91466a

@Pierre-Sassoulas
Copy link
Member

@dependabot recreate

@cdce8p

This comment was marked as outdated.

@cdce8p

This comment was marked as outdated.

Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.2.0...7.3.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@cdce8p cdce8p force-pushed the dependabot/pip/pytest-approx-eq-7.3 branch from a91466a to 42235fc Compare April 23, 2023 10:08
@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Merging #8562 (5ffff46) into main (4d46d94) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8562   +/-   ##
=======================================
  Coverage   95.92%   95.92%           
=======================================
  Files         174      174           
  Lines       18415    18415           
=======================================
  Hits        17664    17664           
  Misses        751      751           

@Pierre-Sassoulas Pierre-Sassoulas merged commit 7bde086 into main Apr 23, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the dependabot/pip/pytest-approx-eq-7.3 branch April 23, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Label for github dependabot Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants