File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 5
5
import os .path
6
6
from typing import TYPE_CHECKING , cast
7
7
8
- import py
8
+ from _pytest . _io import TerminalWriter
9
9
from mako .lookup import TemplateLookup
10
10
11
11
from .feature import get_features
@@ -79,7 +79,7 @@ def show_missing_code(config: Config) -> int:
79
79
80
80
def print_missing_code (scenarios : list [ScenarioTemplate ], steps : list [Step ]) -> None :
81
81
"""Print missing code with TerminalWriter."""
82
- tw = py . io . TerminalWriter ()
82
+ tw = TerminalWriter ()
83
83
scenario = step = None
84
84
85
85
for scenario in scenarios :
@@ -166,7 +166,7 @@ def group_steps(steps: list[Step]) -> list[Step]:
166
166
167
167
def _show_missing_code_main (config : Config , session : Session ) -> None :
168
168
"""Preparing fixture duplicates for output."""
169
- tw = py . io . TerminalWriter ()
169
+ tw = TerminalWriter ()
170
170
session .perform_collect ()
171
171
172
172
fm = session ._fixturemanager
Original file line number Diff line number Diff line change @@ -15,13 +15,6 @@ deps =
15
15
pytest71: pytest~=7.1.0
16
16
pytest70: pytest~=7.0.0
17
17
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
25
18
26
19
coverage: coverage[toml]
27
20
xdist: pytest-xdist
You can’t perform that action at this time.
0 commit comments