Kaydet (Commit) 2bcb3237 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Except HierarchyRequestErr instead of TypeError.

üst 70d39a60
......@@ -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" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment