Skip to content
Snippets Groups Projects
Commit e457321a authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

tests: 'hghave tic' also requires curses support in Python

test-status-color.t would fail when using a Python without curses.
parent 3a3731a6
No related branches found
No related tags found
No related merge requests found
......@@ -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"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment