diff options
-rw-r--r-- | lldb/test/lldbtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 3b1d661f160..9abc4b54c44 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1039,7 +1039,7 @@ class Base(unittest2.TestCase): print >> sbuf, "Executing tearDown hook:", getsource_if_available(hook) import inspect hook_argc = len(inspect.getargspec(hook).args) - if hook_argc == 0 or hook.im_self: + if hook_argc == 0 or getattr(hook,'im_self',None): hook() elif hook_argc == 1: hook(self) |