cpython (merge 3.3 -> default): Merge with 3.3
http://hg.python.org/cpython/rev/8d572bf526e6 changeset: 88752:8d572bf526e6 parent: 88749:21c5e6b4f68b parent: 88751:9ac2016815c9 user: Terry Jan Reedy <tjreedy@udel.edu> date: Sun Jan 26 21:35:22 2014 -0500 summary: Merge with 3.3 files: Lib/idlelib/idle_test/test_calltips.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py --- a/Lib/idlelib/idle_test/test_calltips.py +++ b/Lib/idlelib/idle_test/test_calltips.py @@ -123,6 +123,16 @@ (tc.__call__, '(ci)'), (tc, '(ci)'), (TC.cm, "(a)"),): self.assertEqual(signature(meth), mtip + "\ndoc") + def test_starred_parameter(self): + # test that starred first parameter is *not* removed from argspec + class C: + def m1(*args): pass + def m2(**kwds): pass + c = C() + for meth, mtip in ((C.m1, '(*args)'), (c.m1, "(*args)"), + (C.m2, "(**kwds)"), (c.m2, "(**kwds)"),): + self.assertEqual(signature(meth), mtip) + def test_non_ascii_name(self): # test that re works to delete a first parameter name that # includes non-ascii chars, such as various forms of A. -- Repository URL: http://hg.python.org/cpython
participants (1)
-
terry.reedy