mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
This commit is contained in:
parent
4001e96179
commit
737fb89dd1
36 changed files with 54 additions and 54 deletions
|
@ -389,7 +389,7 @@ class XmlgenTest(unittest.TestCase):
|
|||
def test_5027_1(self):
|
||||
# The xml prefix (as in xml:lang below) is reserved and bound by
|
||||
# definition to http://www.w3.org/XML/1998/namespace. XMLGenerator had
|
||||
# a bug whereby a KeyError is thrown because this namespace is missing
|
||||
# a bug whereby a KeyError is raised because this namespace is missing
|
||||
# from a dictionary.
|
||||
#
|
||||
# This test demonstrates the bug by parsing a document.
|
||||
|
@ -415,7 +415,7 @@ class XmlgenTest(unittest.TestCase):
|
|||
def test_5027_2(self):
|
||||
# The xml prefix (as in xml:lang below) is reserved and bound by
|
||||
# definition to http://www.w3.org/XML/1998/namespace. XMLGenerator had
|
||||
# a bug whereby a KeyError is thrown because this namespace is missing
|
||||
# a bug whereby a KeyError is raised because this namespace is missing
|
||||
# from a dictionary.
|
||||
#
|
||||
# This test demonstrates the bug by direct manipulation of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue