tests/test_docstrings.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
--- a/tests/test_docstrings.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/tests/test_docstrings.py	Tue Apr 30 14:20:22 2013 +0100
@@ -83,7 +83,7 @@
                         for m in dir(obj):
                             a = getattr(obj, m)
                             if type(a) == typ and a not in lookup:
-                                if find(a.im_class.__module__, rootName) != 0:
+                                if find(a.__self__.__class__.__module__, rootName) != 0:
                                     continue
                                 cName = obj.__name__
                                 objects.append((mName, a))
@@ -132,7 +132,7 @@
                     if objType == ClassType:
                         lines.append("%s.%s\n" % (obj.__module__, obj.__name__))
                     elif objType == MethodType:
-                        lines.append("%s.%s\n" % (obj.im_class, obj.__name__))
+                        lines.append("%s.%s\n" % (obj.__self__.__class__, obj.__name__))
                     else:
                         lines.append("%s\n" % (obj.__name__))