Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/click/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

CYGWIN = sys.platform.startswith("cygwin")
WIN = sys.platform.startswith("win")
MAC = sys.platform == "darwin"
auto_wrap_for_ansi: t.Callable[[t.TextIO], t.TextIO] | None = None
_ansi_re = re.compile(r"\033\[[;?0-9]*[a-zA-Z]")

Expand Down
5 changes: 5 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import click._termui_impl
import click.utils
from click._compat import MAC
from click._compat import WIN
from click._utils import UNSET

Expand Down Expand Up @@ -309,6 +310,10 @@ def _test_simulate_keyboard_interrupt(file=None):


@pytest.mark.skipif(WIN, reason="Different behavior on windows.")
@pytest.mark.skipif(
MAC and sys.version_info >= (3, 13) and sys._is_gil_enabled(),
reason="Generator exception tests are flaky in Python 3.14t on macOS.",
)
@pytest.mark.parametrize(
"pager_cmd", ["cat", "cat ", " cat ", "less", " less", " less "]
)
Expand Down
Loading