diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-25 19:30:21 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-25 19:30:21 (GMT) |
commit | 88968ad380752227656e2ab4425315e474e26336 (patch) | |
tree | 87d0b51411b7c9910f96629eb1de7072b2a492a2 /Lib/test/test_extcall.py | |
parent | 5a3ef5b22af607666111c76764db0efffbef82be (diff) | |
download | cpython-88968ad380752227656e2ab4425315e474e26336.zip cpython-88968ad380752227656e2ab4425315e474e26336.tar.gz cpython-88968ad380752227656e2ab4425315e474e26336.tar.bz2 |
only take into account positional arguments count in related error messages
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r-- | Lib/test/test_extcall.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index cf882a5..c31e920 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -279,13 +279,13 @@ The number of arguments passed in includes keywords: >>> f(6, a=4, *(1, 2, 3)) Traceback (most recent call last): ... - TypeError: f() takes exactly 1 argument (5 given) + TypeError: f() takes exactly 1 positional argument (5 given) >>> def f(a, *, kw): ... pass >>> f(6, 4, kw=4) Traceback (most recent call last): ... - TypeError: f() takes exactly 2 arguments (3 given) + TypeError: f() takes exactly 1 positional argument (3 given) """ import sys |