From 2bcb32372cffd1d47eff6263a08b30031602598c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 27 Jan 2001 09:17:55 +0000 Subject: Except HierarchyRequestErr instead of TypeError. --- Lib/test/test_minidom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index e41cf8b..3407209 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" \ -- cgit v0.12