Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 31, 2025

Updates the requirements on pytest-benchmark to permit the latest version.

Changelog

Sourced from pytest-benchmark's changelog.

5.2.0 (2025-10-30)

  • Added support for a per-round teardown function to pedantic mode. Contributed Patrick Winter by [#264](https://github.com/ionelmc/pytest-benchmark/issues/264) <https://github.com/ionelmc/pytest-benchmark/pull/264>_.
  • Added --benchmark-time-unit option. Contributed by Tony Kuo in [#281](https://github.com/ionelmc/pytest-benchmark/issues/281) <https://github.com/ionelmc/pytest-benchmark/pull/281>_.
  • Fixed deprecated hook examples in docstrings. Contributed by Ali-Akber Saifee in [#284](https://github.com/ionelmc/pytest-benchmark/issues/284) <https://github.com/ionelmc/pytest-benchmark/pull/284>_.
  • Changed --benchmark-compare-fail to accept percentages higher than 100%. Contributed by Ben Avrahami in [#290](https://github.com/ionelmc/pytest-benchmark/issues/290) <https://github.com/ionelmc/pytest-benchmark/pull/280>_.
  • Added minimal typing support. Contributed by Sorin Sbarnea in [#290](https://github.com/ionelmc/pytest-benchmark/issues/290) <https://github.com/ionelmc/pytest-benchmark/pull/290>_.
  • Fixed support for Python 3.9. Contributed by Enno Gotthold in [#291](https://github.com/ionelmc/pytest-benchmark/issues/291) <https://github.com/ionelmc/pytest-benchmark/pull/291>_.
  • Replaced the complicated and broken code of pytest_benchmark.utils.clonefunc with a simple return of the input. That function was supposed to allow benchmarking with the cost of PyPy JIT included but it's a hassle to maintain.
  • Moved the instrumentation pause outside the round loops (in addition to tracing, profiling is paused too). Pedantic mode will keep doing this per round (as the user manually controls the round count). This is necessary because in some scenarios setting and unsetting the tracer too much will overflow an internal counter (found to cause "OverflowError: events set too many times" at least on Python 3.13).

5.1.0 (2024-10-30)

  • Fixed broken hooks handling on pytest 8.1 or later (the TypeError: import_path() missing 1 required keyword-only argument: 'consider_namespace_packages' issue). Unfortunately this sets the minimum supported pytest version to 8.1.

5.0.1 (2024-10-30)

  • Fixed bad fixture check that broke down then nbmake <https://pypi.org/project/nbmake/>_ was enabled.

5.0.0 (2024-10-29)

  • Dropped support for now EOL Python 3.8. Also moved tests suite to only test the latest pytest versions (8.3.x).

  • Fix generate parametrize tests benchmark csv report errors (issue [#268](https://github.com/ionelmc/pytest-benchmark/issues/268) <https://github.com/ionelmc/pytest-benchmark/issues/268>). Contributed by Johnny Huang in [#269](https://github.com/ionelmc/pytest-benchmark/issues/269) <https://github.com/ionelmc/pytest-benchmark/pull/269>.

  • Added the --benchmark-time-unit cli option for overriding the measurement unit used for display. Contributed by Tony Kuo in [#257](https://github.com/ionelmc/pytest-benchmark/issues/257) <https://github.com/ionelmc/pytest-benchmark/pull/257>_.

  • Fixes spelling in some help texts. Contributed by Eugeniy in [#267](https://github.com/ionelmc/pytest-benchmark/issues/267) <https://github.com/ionelmc/pytest-benchmark/pull/267>_.

  • Added new cprofile options:

    • --benchmark-cprofile-loops=LOOPS - previously profiling only ran the function once, this allow customization.
    • --benchmark-cprofile-top=COUNT - allows showing more rows.
    • --benchmark-cprofile-dump=[FILENAME-PREFIX] - allows saving to a file (that you can load in snakeviz <https://pypi.org/project/snakeviz/>, RunSnakeRun <https://pypi.org/project/RunSnakeRun/> or other tools).
  • Removed hidden dependency on py.path <https://pypi.org/project/py/>_ (replaced with pathlib).

... (truncated)

Commits
  • 5a164ce Bump version: 5.1.0 → 5.2.0
  • abfb09b Reword the last 2 changes.
  • f8c081b Bump hooks and fix mypy complaint.
  • 604c2e7 Replace all the manual tracer unset/restore with a context manager, and move ...
  • 0e247fd Do not unset/set the tracer/profiler if there's no previous one.
  • 64ae56d Rename to match convention from cprofile mode.
  • 347d84d Also disable other profiler.
  • 6868792 Make cprofile mode disable tracers, just like regular bench mode. Should make...
  • 8e735b2 Nuke the now-broken clonefunc with a identity function. It's currently broken...
  • cecc6ef Fix some badges.
  • 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 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Updates the requirements on [pytest-benchmark](https://github.com/ionelmc/pytest-benchmark) to permit the latest version.
- [Changelog](https://github.com/ionelmc/pytest-benchmark/blob/master/CHANGELOG.rst)
- [Commits](ionelmc/pytest-benchmark@v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: pytest-benchmark
  dependency-version: 5.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 31, 2025
@gadomski gadomski enabled auto-merge (squash) October 31, 2025 11:23
@gadomski gadomski merged commit 76eea24 into main Oct 31, 2025
14 checks passed
@gadomski gadomski deleted the dependabot/pip/pytest-benchmark-approx-eq-5.2.0 branch October 31, 2025 11:27
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 python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants