# HG changeset patch # User Matt Harbison # Date 1610869826 18000 # 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 -r 3dfebba99ef6 -r ef771d329961 tests/hghave.py --- a/tests/hghave.py Wed Dec 09 00:51:35 2020 -0500 +++ b/tests/hghave.py Sun Jan 17 02:50:26 2021 -0500 @@ -708,6 +708,12 @@ 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