diff options
| author | Fredrik Lundh <fredrik@pythonware.com> | 2006-08-16 16:47:07 (GMT) |
|---|---|---|
| committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-08-16 16:47:07 (GMT) |
| commit | dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae (patch) | |
| tree | 3a8d766cd2aaf675701cb2b236119bbaaea58700 /Lib/test/test_xml_etree_c.py | |
| parent | 574cfea99395e85e5458ccc4f2d65f20ee6f1b52 (diff) | |
| download | cpython-dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae.zip cpython-dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae.tar.gz cpython-dc075b9ddd19ec5930d39f4958f8f80a2d14c8ae.tar.bz2 | |
SF#1534630
ignore data that arrives before the opening start tag
Diffstat (limited to 'Lib/test/test_xml_etree_c.py')
| -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 56e7fed..250f791 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) |
