mirror of
https://github.com/python/cpython.git
synced 2024-12-01 05:45:40 +08: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 @@ class sf1296433Test(unittest.TestCase):
|
||||
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 New Issue
Block a user