diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-01-27 02:35:22 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-01-27 02:35:22 (GMT) |
commit | 0c5b5d457103d44dc016a85083455ac9e08e1675 (patch) | |
tree | 6cf59076928d1174a77bc21c149f5066315aaafb /Lib | |
parent | 76964877e3b40b79319dda095ba8ca6b50074c56 (diff) | |
parent | 1b759bc49ed3958c64c7f2796df68b1c607acd69 (diff) | |
download | cpython-0c5b5d457103d44dc016a85083455ac9e08e1675.zip cpython-0c5b5d457103d44dc016a85083455ac9e08e1675.tar.gz cpython-0c5b5d457103d44dc016a85083455ac9e08e1675.tar.bz2 |
Merge with 3.3
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index 4bf5e7e..ab69bd0 100644 --- a/Lib/idlelib/idle_test/test_calltips.py +++ b/Lib/idlelib/idle_test/test_calltips.py @@ -123,6 +123,16 @@ bytes() -> empty bytes object''') (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. |