diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-08-16 16:47:07 +0000 |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-08-16 16:47:07 +0000 |
commit | dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae (patch) | |
tree | 3a8d766cd2aaf675701cb2b236119bbaaea58700 /Lib | |
parent | 574cfea99395e85e5458ccc4f2d65f20ee6f1b52 (diff) | |
download | cpython-git-dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae.tar.gz |
SF#1534630
ignore data that arrives before the opening start tag
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_xml_etree_c.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 56e7fedfdc..250f791073 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -204,6 +204,17 @@ def check_encoding(encoding): "<?xml version='1.0' encoding='%s'?><xml />" % encoding ) +def bug_1534630(): + """ + >>> bob = ET.TreeBuilder() + >>> e = bob.data("data") + >>> e = bob.start("tag", {}) + >>> e = bob.end("tag") + >>> e = bob.close() + >>> serialize(ET, e) + '<tag />' + """ + def test_main(): from test import test_xml_etree_c test_support.run_doctest(test_xml_etree_c, verbosity=True) |