# HG changeset patch # User Christian Ebert # Date 1391469740 -3600 # Node ID 0af7748569a8b43142ffd951d4291b42833eb439 # Parent 95880c8fedb61f3a0a5c1a289aeb685e61583361# Parent aeb658c7dbc70062f1110059edb8486f90d6c78b Merge with stable diff -r 95880c8fedb6 -r 0af7748569a8 tests/hghave.py --- a/tests/hghave.py Fri Jan 17 15:32:21 2014 +0000 +++ b/tests/hghave.py Tue Feb 04 00:22:20 2014 +0100 @@ -272,7 +272,12 @@ return os.name != 'nt' # gross approximation def has_tic(): - return matchoutput('test -x "`which tic`"', '') + try: + import curses + curses.COLOR_BLUE + return matchoutput('test -x "`which tic`"', '') + except ImportError: + return False def has_msys(): return os.getenv('MSYSTEM') @@ -324,7 +329,7 @@ "svn-bindings": (has_svn_bindings, "subversion python bindings"), "symlink": (has_symlink, "symbolic links"), "system-sh": (has_system_sh, "system() uses sh"), - "tic": (has_tic, "terminfo compiler"), + "tic": (has_tic, "terminfo compiler and curses module"), "tla": (has_tla, "GNU Arch tla client"), "unix-permissions": (has_unix_permissions, "unix-style permissions"), "windows": (has_windows, "Windows"),