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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bcb32372cffd1d47eff6263a08b30031602598c;p=thirdparty%2FPython%2Fcpython.git Except HierarchyRequestErr instead of TypeError. --- diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index e41cf8be886c..34072090d024 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" \