Skip to content

Commit 33fbca4

Browse files
authored
Merge pull request #571 from drothlis/py-io
Drop dependency on py.io
2 parents 6ea28d3 + 411afa6 commit 33fbca4

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/pytest_bdd/generation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os.path
66
from typing import TYPE_CHECKING, cast
77

8-
import py
8+
from _pytest._io import TerminalWriter
99
from mako.lookup import TemplateLookup
1010

1111
from .feature import get_features
@@ -79,7 +79,7 @@ def show_missing_code(config: Config) -> int:
7979

8080
def print_missing_code(scenarios: list[ScenarioTemplate], steps: list[Step]) -> None:
8181
"""Print missing code with TerminalWriter."""
82-
tw = py.io.TerminalWriter()
82+
tw = TerminalWriter()
8383
scenario = step = None
8484

8585
for scenario in scenarios:
@@ -166,7 +166,7 @@ def group_steps(steps: list[Step]) -> list[Step]:
166166

167167
def _show_missing_code_main(config: Config, session: Session) -> None:
168168
"""Preparing fixture duplicates for output."""
169-
tw = py.io.TerminalWriter()
169+
tw = TerminalWriter()
170170
session.perform_collect()
171171

172172
fm = session._fixturemanager

tox.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ deps =
1515
pytest71: pytest~=7.1.0
1616
pytest70: pytest~=7.0.0
1717
pytest62: pytest~=6.2.0
18-
pytest61: pytest~=6.1.0
19-
pytest60: pytest~=6.0.0
20-
pytest54: pytest~=5.4.0
21-
pytest53: pytest~=5.3.0
22-
pytest52: pytest~=5.2.0
23-
pytest51: pytest~=5.1.0
24-
pytest50: pytest~=5.0.0
2518

2619
coverage: coverage[toml]
2720
xdist: pytest-xdist

0 commit comments

Comments
 (0)