pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.31k stars 221 forks source link

New release for pytest 7.2 compatibility? #568

Closed The-Compiler closed 2 years ago

The-Compiler commented 2 years ago

Running pytest-bdd with pytest 7.2 (released a week ago) leads to:

pytest.PytestDeprecationWarning: The hookimpl pytest_bdd_after_step uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(tryfirst=True) decorator instead
 to configure the hooks.
 See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
 at .../pytest_bdd/plugin.py:110

This was fixed by @nicoddemus a few months ago:

but it looks like 689b6a9385c3622759e5e3387d21ef0f673fe2ad hasn't made it into a release so far?

drothlis commented 2 years ago

There's also this CI failure seen in https://github.com/pytest-dev/pytest-bdd/pull/570#issuecomment-1301953329:

INTERNALERROR>     tw = py.io.TerminalWriter()
INTERNALERROR> AttributeError: module 'py' has no attribute 'io'

pytest 7.2.0 (2022-10-23) release notes say:

#10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency.

drothlis commented 2 years ago

There's also this CI failure seen in #570 (comment):

Fixed in #571.

youtux commented 2 years ago

Right, I’ll make a release by the end of the weekend, thanks for notifying us

youtux commented 2 years ago

pytest_bdd 6.1.0 just released