Commits

Anonymous committed 593347f

nose.py: don't try to call setup if it's not callable

Comments (0)

Files changed (1)

 
 def call_optional(obj, name):
     method = getattr(obj, name, None)
-    if method is not None and not hasattr(method, "_pytestfixturefunction"):
+    if method is not None and not hasattr(method, "_pytestfixturefunction") and callable(method):
         # If there's any problems allow the exception to raise rather than
         # silently ignoring them
         method()