Skip to content

Commit 63778f8

Browse files
Use public pytest interface for importing CaptureFixture (#136)
Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent aa1f873 commit 63778f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_unit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55

66
import pytest
7-
from _pytest.capture import CaptureFixture
87

98
from subprocess_tee import run
109

@@ -44,7 +43,7 @@ def test_run_list() -> None:
4443
assert result.stderr == old_result.stderr
4544

4645

47-
def test_run_echo(capsys: CaptureFixture[str]) -> None:
46+
def test_run_echo(capsys: pytest.CaptureFixture[str]) -> None:
4847
"""Validate run call with echo dumps command."""
4948
cmd = [sys.executable, "--version"]
5049
old_result = subprocess.run(

0 commit comments

Comments
 (0)