Show More
@@ -123,18 +123,6 b' class SimpleClass(object):' | |||
|
123 | 123 | """Some method's docstring""" |
|
124 | 124 | |
|
125 | 125 | |
|
126 | class OldStyle: | |
|
127 | """An old-style class for testing.""" | |
|
128 | pass | |
|
129 | ||
|
130 | ||
|
131 | def f(x, y=2, *a, **kw): | |
|
132 | """A simple function.""" | |
|
133 | ||
|
134 | ||
|
135 | def g(y, z=3, *a, **kw): | |
|
136 | pass # no docstring | |
|
137 | ||
|
138 | 126 | |
|
139 | 127 | class Awkward(object): |
|
140 | 128 | def __getattr__(self, name): |
@@ -227,9 +215,12 b' def test_info_serialliar():' | |||
|
227 | 215 | # infinite loops: https://github.com/ipython/ipython/issues/9122 |
|
228 | 216 | nt.assert_less(fib_tracker[0], 9000) |
|
229 | 217 | |
|
218 | def support_function_one(x, y=2, *a, **kw): | |
|
219 | """A simple function.""" | |
|
220 | ||
|
230 | 221 | def test_calldef_none(): |
|
231 | 222 | # We should ignore __call__ for all of these. |
|
232 | for obj in [f, SimpleClass().method, any, str.upper]: | |
|
223 | for obj in [support_function_one, SimpleClass().method, any, str.upper]: | |
|
233 | 224 | print(obj) |
|
234 | 225 | i = inspector.info(obj) |
|
235 | 226 | nt.assert_is(i['call_def'], None) |
General Comments 0
You need to be logged in to leave comments.
Login now