# HG changeset patch # User Matt Harbison # Date 2021-01-17 07:50:26 # Node ID ef771d32996164de2b2a4d3c5853de3ce1677ffc # Parent 3dfebba99ef6fbb67a4c3bbf5ccf65bedcaee977 hghave: adjust the definition of `tic` to allow curses tests on Windows Might as well pick up the test coverage if it works as-is. Differential Revision: https://phab.mercurial-scm.org/D9808 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -708,6 +708,12 @@ def has_tic(): import curses curses.COLOR_BLUE + + # Windows doesn't have a `tic` executable, but the windows_curses + # package is sufficient to run the tests without it. + if os.name == 'nt': + return True + return matchoutput('test -x "`which tic`"', br'') except (ImportError, AttributeError): return False