--- a/tests/hghave.py Mon Jan 18 13:59:54 2021 +0100
+++ b/tests/hghave.py Sun Jan 17 22:25:15 2021 -0500
@@ -702,8 +702,8 @@
return os.path.isdir(os.path.join(t, "..", ".hg"))
-@check("tic", "terminfo compiler and curses module")
-def has_tic():
+@check("curses", "terminfo compiler and curses module")
+def has_curses():
try:
import curses
@@ -714,11 +714,17 @@
if os.name == 'nt':
return True
- return matchoutput('test -x "`which tic`"', br'')
+ return has_tic()
+
except (ImportError, AttributeError):
return False
+@check("tic", "terminfo compiler")
+def has_tic():
+ return matchoutput('test -x "`which tic`"', br'')
+
+
@check("xz", "xz compression utility")
def has_xz():
# When Windows invokes a subprocess in shell mode, it uses `cmd.exe`, which