Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c5b5d4

Browse files
committed
Merge with 3.3
2 parents 7696487 + 1b759bc commit 0c5b5d4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lib/idlelib/idle_test/test_calltips.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@ def test_bound_methods(self):
123123
(tc.__call__, '(ci)'), (tc, '(ci)'), (TC.cm, "(a)"),):
124124
self.assertEqual(signature(meth), mtip + "\ndoc")
125125

126+
def test_starred_parameter(self):
127+
# test that starred first parameter is *not* removed from argspec
128+
class C:
129+
def m1(*args): pass
130+
def m2(**kwds): pass
131+
c = C()
132+
for meth, mtip in ((C.m1, '(*args)'), (c.m1, "(*args)"),
133+
(C.m2, "(**kwds)"), (c.m2, "(**kwds)"),):
134+
self.assertEqual(signature(meth), mtip)
135+
126136
def test_non_ascii_name(self):
127137
# test that re works to delete a first parameter name that
128138
# includes non-ascii chars, such as various forms of A.

0 commit comments

Comments
 (0)