Skip to content

Commit 978e064

Browse files
committed
Skip emacs history keybinding tests on Windows
1 parent dbe792e commit 978e064

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from __future__ import annotations
77

8+
import sys
89
from functools import partial
910

1011
import pytest
@@ -318,6 +319,10 @@ def test_controlx_controlx():
318319
assert result.text == "hello worldX"
319320

320321

322+
@pytest.mark.skipif(
323+
sys.platform.startswith("win"),
324+
reason="emacs history bindings don't work on Windows",
325+
)
321326
def test_emacs_history_bindings():
322327
# Adding a new item to the history.
323328
history = _history()
@@ -348,6 +353,10 @@ def test_emacs_history_bindings():
348353
assert result.text == "line2 second input"
349354

350355

356+
@pytest.mark.skipif(
357+
sys.platform.startswith("win"),
358+
reason="emacs history bindings don't work on Windows",
359+
)
351360
def test_emacs_reverse_search():
352361
history = _history()
353362

0 commit comments

Comments
 (0)