1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
--- a/tests/functional/shell/test_script_subprocess.py
+++ b/tests/functional/shell/test_script_subprocess.py
@@ -8,7 +8,6 @@
from typing import cast
import pytest
-from pytest_subtests import SubTests
from pytestshellutils.customtypes import EnvironDict
from pytestshellutils.exceptions import FactoryTimeout
@@ -215,7 +214,7 @@
assert shell.get_display_name() == display_name
-def test_get_script_path(subtests: SubTests) -> None:
+def test_get_script_path(subtests) -> None:
python_binary_name = pathlib.Path(sys.executable).name
with subtests.test(script_name=sys.executable):
shell = ScriptSubprocess(script_name=sys.executable)
--- a/tests/unit/utils/processes/test_processresult.py
+++ b/tests/unit/utils/processes/test_processresult.py
@@ -8,7 +8,6 @@
import textwrap
import pytest
-from pytest_subtests import SubTests
from pytestshellutils.utils.processes import ProcessResult
@@ -21,7 +20,7 @@
ProcessResult(returncode=returncode, stdout="", stderr="")
-def test_attributes(subtests: SubTests) -> None:
+def test_attributes(subtests) -> None:
returncode = 0
stdout = "STDOUT"
stderr = "STDERR"
@@ -76,7 +75,7 @@
assert ret.cmdline == cmdline
-def test_str_formatting(subtests: SubTests) -> None:
+def test_str_formatting(subtests) -> None:
returncode = 0
stdout = "STDOUT"
stderr = "STDERR"
|