gtest(types.MethodType, "method(function, instance)")
gtest(SB(), default_tip)
- drop_whitespace=True, break_on_hyphens=True, tabsize=8)''')
+ def test_signature_wrap(self):
++ #print(signature(textwrap.TextWrapper))
+ self.assertEqual(signature(textwrap.TextWrapper), '''\
+ (width=70, initial_indent='', subsequent_indent='', expand_tabs=True,
+ replace_whitespace=True, fix_sentence_endings=False, break_long_words=True,
++ drop_whitespace=True, break_on_hyphens=True, tabsize=8, *, max_lines=None,
++ placeholder=' [...]')''')
+
+ def test_docline_truncation(self):
+ def f(): pass
+ f.__doc__ = 'a'*300
+ self.assertEqual(signature(f), '()\n' + 'a' * (ct._MAX_COLS-3) + '...')
+
def test_multiline_docstring(self):
# Test fewer lines than max.
self.assertEqual(signature(list),