diff tests/hghave @ 5162:9b0efeb725f4

test-profile: fix grep, check hotshot availability
author Patrick Mezard <pmezard@gmail.com>
date Tue, 14 Aug 2007 18:53:45 +0200
parents 105d4cf7ec24
children e5b21a549cc5
line wrap: on
line diff
--- a/tests/hghave
+++ b/tests/hghave
@@ -35,6 +35,13 @@ def has_eol_in_paths():
     except:
         return False
 
+def has_hotshot():
+    try:
+        import hotshot
+        return True
+    except ImportError:
+        return False
+
 def has_lsprof():
     try:
         import _lsprof
@@ -46,6 +53,7 @@ checks = {
     "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
     "execbit": (has_executablebit, "executable bit"),
     "fifo": (has_fifo, "named pipes"),
+    "hotshot": (has_hotshot, "python hotshot module"),
     "lsprof": (has_lsprof, "python lsprof module"),
     "symlink": (has_symlink, "symbolic links"),
 }