Skip to content

Commit

Permalink
Merge pull request #571 from drothlis/py-io
Browse files Browse the repository at this point in the history
Drop dependency on py.io
  • Loading branch information
youtux committed Nov 3, 2022
2 parents 6ea28d3 + 411afa6 commit 33fbca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/pytest_bdd/generation.py
Expand Up @@ -5,7 +5,7 @@
import os.path
from typing import TYPE_CHECKING, cast

import py
from _pytest._io import TerminalWriter
from mako.lookup import TemplateLookup

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

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

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

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

fm = session._fixturemanager
Expand Down
7 changes: 0 additions & 7 deletions tox.ini
Expand Up @@ -15,13 +15,6 @@ deps =
pytest71: pytest~=7.1.0
pytest70: pytest~=7.0.0
pytest62: pytest~=6.2.0
pytest61: pytest~=6.1.0
pytest60: pytest~=6.0.0
pytest54: pytest~=5.4.0
pytest53: pytest~=5.3.0
pytest52: pytest~=5.2.0
pytest51: pytest~=5.1.0
pytest50: pytest~=5.0.0

coverage: coverage[toml]
xdist: pytest-xdist
Expand Down

0 comments on commit 33fbca4

Please sign in to comment.