Mercurial > hg
diff tests/hghave @ 6996:fecf060f32a1
inotify: deactivate inotify status on failure
workaround issue1208, add test
fix traceback handling (socket.error is a singleton in this case)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 06 Sep 2008 12:49:20 +0200 |
parents | 59f7b804352f |
children | ddfcefab8b97 |
line wrap: on
line diff
--- a/tests/hghave Sat Sep 06 12:48:52 2008 +0200 +++ b/tests/hghave Sat Sep 06 12:49:20 2008 +0200 @@ -57,6 +57,13 @@ finally: os.remove(path) +def has_inotify(): + try: + import hgext.inotify.linux.watcher + return True + except ImportError: + return False + def has_fifo(): return hasattr(os, "mkfifo") @@ -129,14 +136,15 @@ "fifo": (has_fifo, "named pipes"), "git": (has_git, "git command line client"), "hotshot": (has_hotshot, "python hotshot module"), + "inotify": (has_inotify, "inotify extension support"), "lsprof": (has_lsprof, "python lsprof module"), "mtn": (has_mtn, "monotone client (> 0.31)"), + "pygments": (has_pygments, "Pygments source highlighting library"), "svn": (has_svn, "subversion client and admin tools"), "svn-bindings": (has_svn_bindings, "subversion python bindings"), "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():