Skip to content

Update dependency pytest-bdd to v9 - #2126

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pytest-bdd-9.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pytest-bdd-9.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pytest-bdd 8.1.0 → 9.0.0 age confidence

Release Notes

pytest-dev/pytest-bdd (pytest-bdd)

v9.0.0

Compare Source

Added
+++++

Changed
+++++++

  • Relaxed gherkin-official dependency requirement to >=29.0.0 to allow for newer versions of the gherkin-official package.
  • Excluded gherkin-official 31.0.0 and 32.0.0, which crash with StopIteration when parsing empty descriptions (fixed upstream in 32.0.1).
  • The --gherkin-terminal-reporter incompatibility errors (with another terminal reporter or with xdist) are now raised as pytest.UsageError instead of a bare Exception.

Deprecated
++++++++++

Removed
+++++++

  • Dropped support for python 3.9 (end-of-life, and its locked dev dependencies had unfixable security alerts). Supported python versions: 3.10, 3.11, 3.12, 3.13, 3.14.
  • The following private attributes are not available anymore (#&#8203;658 <https://github.com/pytest-dev/pytest-bdd/pull/658>_):
    • _pytest.reports.TestReport.scenario; replaced by pytest_bdd.reporting.test_report_context WeakKeyDictionary (internal use)
    • __scenario__ attribute of test functions generated by the @scenario (and @scenarios) decorator; replaced by pytest_bdd.scenario.scenario_wrapper_template_registry WeakKeyDictionary (internal use)
    • _pytest.nodes.Item.__scenario_report__; replaced by pytest_bdd.reporting.scenario_reports_registry WeakKeyDictionary (internal use)
    • _pytest_bdd_step_context attribute of internal test function markers; replaced by pytest_bdd.steps.step_function_context_registry WeakKeyDictionary (internal use)

Fixed
+++++

  • Backslashes in datatable and examples table cells are no longer over-quoted. A cell containing a single backslash now reaches the step as a single backslash, matching the Gherkin escaping rules. If you compensated by doubling backslashes in feature files, undo that. #&#8203;769 <https://github.com/pytest-dev/pytest-bdd/issues/769>_
  • Made type annotations stronger and removed most of the typing.Any usages and # type: ignore annotations. #&#8203;658 <https://github.com/pytest-dev/pytest-bdd/pull/658>_
  • Empty docstrings are now correctly forwarded to step functions as an empty string instead of being silently dropped, which previously caused pytest to report a missing docstring fixture. #&#8203;809 <https://github.com/pytest-dev/pytest-bdd/issues/809>_
  • Injecting a target_fixture no longer emits PytestRemovedIn10Warning on pytest 9.1+, which deprecated passing nodeid to _register_fixture. #&#8203;823 <https://github.com/pytest-dev/pytest-bdd/issues/823>_

Security
++++++++


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the packaging Updates to packaging (dependencies, etc) label Oct 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging Updates to packaging (dependencies, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants