mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-111490: Make the exception type check in test_pyexpat more specific (GH-111491)
This commit is contained in:
parent
26c0e5e03a
commit
7bcf184dac
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,7 @@ def handler(text):
|
|||
parser = expat.ParserCreate()
|
||||
parser.CharacterDataHandler = handler
|
||||
|
||||
self.assertRaises(Exception, parser.Parse, xml.encode('iso8859'))
|
||||
self.assertRaises(SpecificException, parser.Parse, xml.encode('iso8859'))
|
||||
|
||||
class ChardataBufferTest(unittest.TestCase):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue