mirror of
https://github.com/python/cpython
synced 2024-10-14 09:43:55 +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
|
@ -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…
Reference in a new issue