mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Added a test case for the saxutils.prepare_input_source setSystemId bug.
This commit is contained in:
parent
4ced5e7675
commit
0702507ea2
2 changed files with 14 additions and 1 deletions
|
@ -185,6 +185,18 @@ def test_filter_basic():
|
|||
#
|
||||
# ===========================================================================
|
||||
|
||||
# ===== XMLReader support
|
||||
|
||||
def test_expat_file():
|
||||
parser = create_parser()
|
||||
result = StringIO()
|
||||
xmlgen = XMLGenerator(result)
|
||||
|
||||
parser.setContentHandler(xmlgen)
|
||||
parser.parse(open(findfile("test.xml")))
|
||||
|
||||
return result.getvalue() == xml_test_out
|
||||
|
||||
# ===== DTDHandler support
|
||||
|
||||
class TestDTDHandler:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue