diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 09:17:55 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 09:17:55 (GMT) |
commit | 2bcb32372cffd1d47eff6263a08b30031602598c (patch) | |
tree | 394532ab5930a3e42d6ed1c98e4a97bf1e0c612f /Lib/test | |
parent | 70d39a60a80e2fcf21b05e899d43f6dab49f839e (diff) | |
download | cpython-2bcb32372cffd1d47eff6263a08b30031602598c.zip cpython-2bcb32372cffd1d47eff6263a08b30031602598c.tar.gz cpython-2bcb32372cffd1d47eff6263a08b30031602598c.tar.bz2 |
Except HierarchyRequestErr instead of TypeError.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_minidom.py | 2 |
1 files changed, 1 insertions, 1 deletions
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" \ |