mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Except HierarchyRequestErr instead of TypeError.
This commit is contained in:
parent
70d39a60a8
commit
2bcb32372c
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ def testTooManyDocumentElements():
|
|||
elem = doc.createElement("extra")
|
||||
try:
|
||||
doc.appendChild(elem)
|
||||
except TypeError:
|
||||
except HierarchyRequestErr:
|
||||
print "Caught expected exception when adding extra document element."
|
||||
else:
|
||||
print "Failed to catch expected exception when" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue