pytest-dev / pytest-bdd

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

Drop dependency on py.io #571

Closed drothlis closed 2 years ago

drothlis commented 2 years ago

Since pytest 7.2.0 was released 2 weeks ago (2022-10-23), CI fails against pytest-latest:

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

Pytest 7.2.0 dropped its dependency on the py package. We don't specify py explicitly as a dependency, so tests starting failing since the release of pytest 7.2.0.

To drop this dependency, pytest vendored py.io.TerminalWriter into _pytest._io in pytest commit 276405a03 (6.0.0rc1). We require pytest>=6.2, so we can import it from there.

codecov[bot] commented 2 years ago

Codecov Report

Base: 98.49% // Head: 98.49% // No change to project coverage :thumbsup:

Coverage data is based on head (411afa6) compared to base (fb7ede3). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #571 +/- ## ======================================= Coverage 98.49% 98.49% ======================================= Files 32 32 Lines 733 733 Branches 16 16 ======================================= Hits 722 722 Misses 9 9 Partials 2 2 ``` Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pytest-dev). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pytest-dev)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.