Skip to content

Commit

Permalink
Mark keyboard interrupt flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Dec 11, 2022
1 parent 85b2de6 commit 36afe0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tests/execute/local_subprocess/test_local_subprocess.py
Expand Up @@ -14,7 +14,6 @@
import psutil
import pytest
from colorama import Fore
from flaky import flaky
from psutil import AccessDenied
from pytest_mock import MockerFixture

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


@flaky # type: ignore
@pytest.mark.skipif(sys.platform == "win32", reason="You need a conhost shell for keyboard interrupt")
@pytest.mark.flaky(max_runs=3, min_passes=1)
def test_command_keyboard_interrupt(tmp_path: Path, monkeypatch: MonkeyPatch, capfd: CaptureFixture) -> None:
monkeypatch.chdir(tmp_path)
process_up_signal = tmp_path / "signal"
Expand Down
1 change: 1 addition & 0 deletions tests/session/cmd/test_parallel.py
Expand Up @@ -115,6 +115,7 @@ def test_parallel_show_output_with_pkg(tox_project: ToxProjectCreator, demo_pkg_


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

0 comments on commit 36afe0c

Please sign in to comment.