From: Martin v. Löwis Date: Sat, 27 Jan 2001 09:17:55 +0000 (+0000) Subject: Except HierarchyRequestErr instead of TypeError. X-Git-Tag: v2.1a2~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bcb32372cffd1d47eff6263a08b30031602598c;p=python Except HierarchyRequestErr instead of TypeError. --- 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" \