diff tests/hghave @ 5102: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	Tue Aug 14 17:20:51 2007 +0200
+++ b/tests/hghave	Tue Aug 14 18:53:45 2007 +0200
@@ -35,6 +35,13 @@
     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 @@
     "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"),
 }