summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_extcall
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-03-30 23:55:31 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-03-30 23:55:31 (GMT)
commit074c3e62d155349a69442f43e81a73883f222ea9 (patch)
tree50a773b1a903857944554bb06372decdf5addb3d /Lib/test/output/test_extcall
parentaaf0ab26ed4fd02da874a9d2eee68b7c64e8377d (diff)
downloadcpython-074c3e62d155349a69442f43e81a73883f222ea9.zip
cpython-074c3e62d155349a69442f43e81a73883f222ea9.tar.gz
cpython-074c3e62d155349a69442f43e81a73883f222ea9.tar.bz2
Two fixes for extended call syntax:
If a non-tuple sequence is passed as the *arg, convert it to a tuple before checking its length. If named keyword arguments are used in combination with **kwargs, make a copy of kwargs before inserting the new keys.
Diffstat (limited to 'Lib/test/output/test_extcall')
-rw-r--r--Lib/test/output/test_extcall4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/output/test_extcall b/Lib/test/output/test_extcall
index f4369b5..209ded7 100644
--- a/Lib/test/output/test_extcall
+++ b/Lib/test/output/test_extcall
@@ -16,6 +16,10 @@ TypeError: not enough arguments; expected 1, got 0
1 (2,) {}
1 (2, 3) {}
1 (2, 3, 4, 5) {}
+0 (1, 2) {}
+1 () {'d': 4, 'b': 2, 'c': 3, 'a': 1}
+{'b': 2, 'c': 3, 'a': 1}
+{'b': 2, 'c': 3, 'a': 1}
keyword parameter redefined: x
keyword parameter redefined: b
keywords must be strings