changeset 3943:25d4db484bf1

Multiple extension modules are called xattr, check for the xattr function as well.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Fri, 15 Aug 2008 22:20:16 +0200
parents dd6938a4d07b
children 3a6be2089de9
files MoinMoin/_tests/test_sourcecode.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_sourcecode.py	Fri Aug 15 19:05:20 2008 +0200
+++ b/MoinMoin/_tests/test_sourcecode.py	Fri Aug 15 22:20:16 2008 +0200
@@ -32,6 +32,8 @@
 
 try:
     import xattr
+    if not hasattr(xattr, "xattr"): # there seem to be multiple modules with that name
+        raise ImportError
     def mark_file_ok(path, mtime):
         x = xattr.xattr(path)
         try: