--- a/tests/hghave Sat Mar 22 18:33:10 2008 +0100
+++ b/tests/hghave Sat Mar 22 20:16:30 2008 +0100
@@ -107,6 +107,13 @@
finally:
os.rmdir(d)
+def has_pygments():
+ try:
+ import pygments
+ return True
+ except ImportError:
+ return False
+
checks = {
"baz": (has_baz, "GNU Arch baz client"),
"cvs": (has_cvs, "cvs client"),
@@ -123,6 +130,7 @@
"symlink": (has_symlink, "symbolic links"),
"tla": (has_tla, "GNU Arch tla client"),
"unix-permissions": (has_unix_permissions, "unix-style permissions"),
+ "pygments": (has_pygments, "Pygments source highlighting library"),
}
def list_features():