Except HierarchyRequestErr instead of TypeError.
This commit is contained in:
parent
70d39a60a8
commit
2bcb32372c
@ -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" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user