tests/hghave
changeset 5099 105d4cf7ec24
parent 5092 6e040f6c2c9c
child 5102 9b0efeb725f4
--- a/tests/hghave	Tue Aug 14 16:03:15 2007 +0200
+++ b/tests/hghave	Tue Aug 14 16:27:35 2007 +0200
@@ -35,11 +35,19 @@
     except:
         return False
 
+def has_lsprof():
+    try:
+        import _lsprof
+        return True
+    except ImportError:
+        return False
+
 checks = {
-    "symlink": (has_symlink, "symbolic links"),
+    "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
+    "execbit": (has_executablebit, "executable bit"),
     "fifo": (has_fifo, "named pipes"),
-    "execbit": (has_executablebit, "executable bit"),
-    "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
+    "lsprof": (has_lsprof, "python lsprof module"),
+    "symlink": (has_symlink, "symbolic links"),
 }
 
 def list_features():