diff options
author | Ka-Ping Yee <ping@zesty.ca> | 2001-01-15 22:14:16 (GMT) |
---|---|---|
committer | Ka-Ping Yee <ping@zesty.ca> | 2001-01-15 22:14:16 (GMT) |
commit | 2057970601b99863c06be1b266247a0fab35bd9b (patch) | |
tree | 74e1565eca3f15bb04d350d566535027503cf82d /Lib/test/output/test_pyexpat | |
parent | 1ff08b1243dcb07db975640b2f3cbc82985bee81 (diff) | |
download | cpython-2057970601b99863c06be1b266247a0fab35bd9b.zip cpython-2057970601b99863c06be1b266247a0fab35bd9b.tar.gz cpython-2057970601b99863c06be1b266247a0fab35bd9b.tar.bz2 |
This patch makes sure that the function name always appears in the error
message, and tries to make the messages more consistent and helpful when
the wrong number of arguments or duplicate keyword arguments are supplied.
Comes with more tests for test_extcall.py and and an update to an error
message in test/output/test_pyexpat.
Diffstat (limited to 'Lib/test/output/test_pyexpat')
-rw-r--r-- | Lib/test/output/test_pyexpat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/output/test_pyexpat b/Lib/test/output/test_pyexpat index 4d9981c..5d6160a 100644 --- a/Lib/test/output/test_pyexpat +++ b/Lib/test/output/test_pyexpat @@ -97,7 +97,7 @@ End element: Testing constructor for proper handling of namespace_separator values: Legal values tested o.k. Caught expected TypeError: -ParserCreate, argument 2: expected string or None, int found +ParserCreate() argument 2 must be string or None, not int Caught expected ValueError: namespace_separator must be one character, omitted, or None Caught expected ValueError: |