diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2000-10-24 16:00:22 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2000-10-24 16:00:22 (GMT) |
commit | 0702507ea2e6a6a2c36430cc4ec6c824373672c7 (patch) | |
tree | df9d4de9acca9fb72185a5efe58d1eac73f17c4e /Lib/test | |
parent | 4ced5e7675ac8664be82c7dc0e213201871a0983 (diff) | |
download | cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.zip cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.tar.gz cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.tar.bz2 |
Added a test case for the saxutils.prepare_input_source setSystemId bug.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_sax | 3 | ||||
-rw-r--r-- | Lib/test/test_sax.py | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Lib/test/output/test_sax b/Lib/test/output/test_sax index 062a456..de49c80 100644 --- a/Lib/test/output/test_sax +++ b/Lib/test/output/test_sax @@ -8,6 +8,7 @@ Passed test_expat_attrs_empty Passed test_expat_attrs_wattr Passed test_expat_dtdhandler Passed test_expat_entityresolver +Passed test_expat_file Passed test_expat_incomplete Passed test_expat_incremental Passed test_expat_incremental_reset @@ -30,4 +31,4 @@ Passed test_xmlgen_content_escape Passed test_xmlgen_ignorable Passed test_xmlgen_ns Passed test_xmlgen_pi -31 tests, 0 failures +32 tests, 0 failures diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 59e14c5..b4c840b 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -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: |