Except HierarchyRequestErr instead of TypeError.

This commit is contained in:
Martin v. Löwis 2001-01-27 09:17:55 +00:00
parent 70d39a60a8
commit 2bcb32372c

View File

@ -294,7 +294,7 @@ def testTooManyDocumentElements():
elem = doc.createElement("extra") elem = doc.createElement("extra")
try: try:
doc.appendChild(elem) doc.appendChild(elem)
except TypeError: except HierarchyRequestErr:
print "Caught expected exception when adding extra document element." print "Caught expected exception when adding extra document element."
else: else:
print "Failed to catch expected exception when" \ print "Failed to catch expected exception when" \