summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-01-27 09:17:55 +0000
committerMartin v. Löwis <martin@v.loewis.de>2001-01-27 09:17:55 +0000
commit2bcb32372cffd1d47eff6263a08b30031602598c (patch)
tree394532ab5930a3e42d6ed1c98e4a97bf1e0c612f
parent70d39a60a80e2fcf21b05e899d43f6dab49f839e (diff)
downloadcpython-git-2bcb32372cffd1d47eff6263a08b30031602598c.tar.gz
Except HierarchyRequestErr instead of TypeError.
-rw-r--r--Lib/test/test_minidom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
index e41cf8be88..34072090d0 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -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" \