Skip to content

Commit 36afe0c

Browse files
committed
Mark keyboard interrupt flaky test
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 85b2de6 commit 36afe0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/execute/local_subprocess/test_local_subprocess.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import psutil
1515
import pytest
1616
from colorama import Fore
17-
from flaky import flaky
1817
from psutil import AccessDenied
1918
from pytest_mock import MockerFixture
2019

@@ -222,8 +221,8 @@ def test_command_does_not_exist(caplog: LogCaptureFixture, os_env: dict[str, str
222221
assert not caplog.records
223222

224223

225-
@flaky # type: ignore
226224
@pytest.mark.skipif(sys.platform == "win32", reason="You need a conhost shell for keyboard interrupt")
225+
@pytest.mark.flaky(max_runs=3, min_passes=1)
227226
def test_command_keyboard_interrupt(tmp_path: Path, monkeypatch: MonkeyPatch, capfd: CaptureFixture) -> None:
228227
monkeypatch.chdir(tmp_path)
229228
process_up_signal = tmp_path / "signal"

tests/session/cmd/test_parallel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def test_parallel_show_output_with_pkg(tox_project: ToxProjectCreator, demo_pkg_
115115

116116

117117
@pytest.mark.skipif(sys.platform == "win32", reason="You need a conhost shell for keyboard interrupt")
118+
@pytest.mark.flaky(max_runs=3, min_passes=1)
118119
def test_keyboard_interrupt(tox_project: ToxProjectCreator, demo_pkg_inline: Path, tmp_path: Path) -> None:
119120
marker = tmp_path / "a"
120121
ini = f"""

0 commit comments

Comments
 (0)