diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 09:17:55 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-01-27 09:17:55 +0000 |
commit | 2bcb32372cffd1d47eff6263a08b30031602598c (patch) | |
tree | 394532ab5930a3e42d6ed1c98e4a97bf1e0c612f | |
parent | 70d39a60a80e2fcf21b05e899d43f6dab49f839e (diff) | |
download | cpython-git-2bcb32372cffd1d47eff6263a08b30031602598c.tar.gz |
Except HierarchyRequestErr instead of TypeError.
-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 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" \ |