Show More
@@ -243,15 +243,6 b' def test_info():' | |||
|
243 | 243 | nt.assert_equal(i['init_docstring'], Call.__init__.__doc__) |
|
244 | 244 | nt.assert_equal(i['call_docstring'], Call.__call__.__doc__) |
|
245 | 245 | |
|
246 | # Test old-style classes, which for example may not have an __init__ method. | |
|
247 | if not py3compat.PY3: | |
|
248 | i = inspector.info(OldStyle) | |
|
249 | nt.assert_equal(i['type_name'], 'classobj') | |
|
250 | ||
|
251 | i = inspector.info(OldStyle()) | |
|
252 | nt.assert_equal(i['type_name'], 'instance') | |
|
253 | nt.assert_equal(i['docstring'], OldStyle.__doc__) | |
|
254 | ||
|
255 | 246 | def test_class_signature(): |
|
256 | 247 | info = inspector.info(HasSignature, 'HasSignature') |
|
257 | 248 | nt.assert_equal(info['init_definition'], "HasSignature(test)") |
General Comments 0
You need to be logged in to leave comments.
Login now