Skip to content

Bump pytest from 7.2.2 to 7.3.1 #368

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

Merged
merged 3 commits into from
May 30, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps pytest from 7.2.2 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 method when running unittest tests.
  • #10890: Python 3.12 support: fixed shutil.rmtree(onerror=...) deprecation warning when using tmp_path{.interpreted-text role="fixture"}.

Bug Fixes

  • #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: 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.

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

... (truncated)

Commits
  • dab1992 Prepare release version 7.3.1
  • c3d9dac [7.3.x] Fix tmp_path regression introduced in 7.3.0 (#10912)
  • 06d7596 Merge pull request #10906 from pytest-dev/backport-10904-to-7.3.x
  • a4121aa [7.3.x] Revert "Correctly handle tracebackhide for chained exceptions (#10772)"
  • 6e26c2b Merge pull request #10898 from pytest-dev/backport-10893-to-7.3.x
  • 23cf1fe [7.3.x] Python 3.12 alpha fixes
  • 1a427d3 [7.3.x] Amend changelog note for removal of attrs (#10889)
  • cec5bfe Merge pull request #10881 from pytest-dev/release-7.3.0
  • ef982aa Prepare release version 7.3.0
  • 3683722 FormattedExcinfo.get_source: avoid crash when line number is out-of-bounds/ne...
  • Additional commits viewable in compare view

Dependabot compatibility score

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)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.3.1.
- [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.2...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file skip-changelog The PR will not appear in the release changelogs labels Apr 17, 2023
@alallema
Copy link
Contributor

bors try

meili-bors bot added a commit that referenced this pull request May 30, 2023
@meili-bors
Copy link
Contributor

meili-bors bot commented May 30, 2023

try

Build failed:

@alallema
Copy link
Contributor

bors merge

meili-bors bot added a commit that referenced this pull request May 30, 2023
368: Bump pytest from 7.2.2 to 7.3.1 r=alallema a=dependabot[bot]

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.3.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pytest-dev/pytest/releases">pytest's releases</a>.</em></p>
<blockquote>
<h2>7.3.1</h2>
<h1>pytest 7.3.1 (2023-04-14)</h1>
<h2>Improvements</h2>
<ul>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10875">#10875</a>: Python 3.12 support: fixed <code>RuntimeError: TestResult has no addDuration method</code> when running <code>unittest</code> tests.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10890">#10890</a>: Python 3.12 support: fixed <code>shutil.rmtree(onerror=...)</code> deprecation warning when using <code>tmp_path</code>{.interpreted-text role=&quot;fixture&quot;}.</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10896">#10896</a>: Fixed performance regression related to <code>tmp_path</code>{.interpreted-text role=&quot;fixture&quot;} and the new <code>tmp_path_retention_policy</code>{.interpreted-text role=&quot;confval&quot;} option.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10903">#10903</a>: Fix crash <code>INTERNALERROR IndexError: list index out of range</code> which happens when displaying an exception where all entries are hidden.
This reverts the change &quot;Correctly handle <code>__tracebackhide__</code> for chained exceptions.&quot; introduced in version 7.3.0.</li>
</ul>
<h2>7.3.0</h2>
<h1>pytest 7.3.0 (2023-04-08)</h1>
<h2>Features</h2>
<ul>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10525">#10525</a>: Test methods decorated with <code>`@classmethod</code>` 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.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10755">#10755</a>: <code>console_output_style</code>{.interpreted-text role=&quot;confval&quot;} now supports <code>progress-even-when-capture-no</code> 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.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/7431">#7431</a>: <code>--log-disable</code> CLI option added to disable individual loggers.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/8141">#8141</a>: Added <code>tmp_path_retention_count</code>{.interpreted-text role=&quot;confval&quot;} and <code>tmp_path_retention_policy</code>{.interpreted-text role=&quot;confval&quot;} configuration options to control how directories created by the <code>tmp_path</code>{.interpreted-text role=&quot;fixture&quot;} fixture are kept.</li>
</ul>
<h2>Improvements</h2>
<ul>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10226">#10226</a>: If multiple errors are raised in teardown, we now re-raise an <code>ExceptionGroup</code> of them instead of discarding all but the last.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10658">#10658</a>: Allow <code>-p</code> arguments to include spaces (eg: <code>-p no:logging</code> instead of
<code>-pno:logging</code>). Mostly useful in the <code>addopts</code> section of the configuration
file.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10710">#10710</a>: Added <code>start</code> and <code>stop</code> timestamps to <code>TestReport</code> objects.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10727">#10727</a>: Split the report header for <code>rootdir</code>, <code>config file</code> and <code>testpaths</code> so each has its own line.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10840">#10840</a>: pytest should no longer crash on AST with pathological position attributes, for example testing AST produced by [Hylang &lt;https://github.com/hylang/hy&gt;__]{.title-ref}.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/6267">#6267</a>: 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.</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10743">#10743</a>: The assertion rewriting mechanism now works correctly when assertion expressions contain the walrus operator.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/10765">#10765</a>: Fixed <code>tmp_path</code>{.interpreted-text role=&quot;fixture&quot;} fixture always raising <code>OSError</code>{.interpreted-text role=&quot;class&quot;} on <code>emscripten</code> platform due to missing <code>os.getuid</code>{.interpreted-text role=&quot;func&quot;}.</li>
<li><a href="https://redirect.github.com/pytest-dev/pytest/issues/1904">#1904</a>: Correctly handle <code>__tracebackhide__</code> for chained exceptions.</li>
</ul>
<p>Improved Documentation</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pytest-dev/pytest/commit/dab199281c8f969ef870d842a660e40872785bd4"><code>dab1992</code></a> Prepare release version 7.3.1</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/c3d9dacd3987f14c230a0bc9e30fa064df30891f"><code>c3d9dac</code></a> [7.3.x] Fix tmp_path regression introduced in 7.3.0 (<a href="https://redirect.github.com/pytest-dev/pytest/issues/10912">#10912</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/06d759619df7422d45df6c870e1846854a5a0143"><code>06d7596</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/10906">#10906</a> from pytest-dev/backport-10904-to-7.3.x</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/a4121aa0b6d7f8d67c6934dbb81671a859b9bdf3"><code>a4121aa</code></a> [7.3.x] Revert &quot;Correctly handle tracebackhide for chained exceptions (<a href="https://redirect.github.com/pytest-dev/pytest/issues/10772">#10772</a>)&quot;</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/6e26c2bf9be582b95227e2dc235473680fc5d59c"><code>6e26c2b</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/10898">#10898</a> from pytest-dev/backport-10893-to-7.3.x</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/23cf1feb973d4036458860e8b08bbbbd250edd4d"><code>23cf1fe</code></a> [7.3.x] Python 3.12 alpha fixes</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/1a427d32d6d13a16cd669ffeb7ece254167db3c8"><code>1a427d3</code></a> [7.3.x] Amend changelog note for removal of attrs (<a href="https://redirect.github.com/pytest-dev/pytest/issues/10889">#10889</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/cec5bfe0588adaa2ca36c72c724378982db6410a"><code>cec5bfe</code></a> Merge pull request <a href="https://redirect.github.com/pytest-dev/pytest/issues/10881">#10881</a> from pytest-dev/release-7.3.0</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/ef982aaf2bce28d6b27e24756a4d29377a593a1d"><code>ef982aa</code></a> Prepare release version 7.3.0</li>
<li><a href="https://github.com/pytest-dev/pytest/commit/3683722bcbc0facc8fe695c7ece286f26fc6234f"><code>3683722</code></a> FormattedExcinfo.get_source: avoid crash when line number is out-of-bounds/ne...</li>
<li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest/compare/7.2.2...7.3.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest&package-manager=pip&previous-version=7.2.2&new-version=7.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amélie <[email protected]>
@meili-bors
Copy link
Contributor

meili-bors bot commented May 30, 2023

Canceled.

@alallema
Copy link
Contributor

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented May 30, 2023

@meili-bors meili-bors bot merged commit a67bdac into main May 30, 2023
@meili-bors meili-bors bot deleted the dependabot/pip/pytest-7.3.1 branch May 30, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant