Skip to content

Drop dependency on py.io #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pytest_bdd/generation.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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