Show More
@@ -116,6 +116,10 b' class DocTestFinder(doctest.DocTestFinder):' | |||||
116 | return module.__name__ == object.__module__ |
|
116 | return module.__name__ == object.__module__ | |
117 | elif isinstance(object, property): |
|
117 | elif isinstance(object, property): | |
118 | return True # [XX] no way not be sure. |
|
118 | return True # [XX] no way not be sure. | |
|
119 | elif inspect.ismethoddescriptor(object): | |||
|
120 | # Unbound PyQt signals reach this point in Python 3.4b3, and we want | |||
|
121 | # to avoid throwing an error. See also http://bugs.python.org/issue3158 | |||
|
122 | return False | |||
119 | else: |
|
123 | else: | |
120 | raise ValueError("object must be a class or function, got %r" % object) |
|
124 | raise ValueError("object must be a class or function, got %r" % object) | |
121 |
|
125 |
General Comments 0
You need to be logged in to leave comments.
Login now