1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-13 09:01:53 +03:00

another couple of problem related to IsEmptyElement reported by Stphane

* xmlreader.c python/tests/reader.py: another couple of problem
  related to IsEmptyElement reported by Stphane Bidoul needed
  some fixes.
Daniel
This commit is contained in:
Daniel Veillard
2003-01-02 14:16:45 +00:00
parent 4f86020248
commit dab8ea9b83
3 changed files with 47 additions and 2 deletions

View File

@ -377,6 +377,28 @@ if res != expect:
print res
sys.exit(1)
doc="""<test><p></p></test>"""
expect="""1 (test) [None] 0 0
1 (p) [None] 0 1
15 (p) [None] 0 1
15 (test) [None] 0 0
"""
res = tst_reader(doc)
if res != expect:
print "test13 failed"
print res
sys.exit(1)
doc="""<p></p>"""
expect="""1 (p) [None] 0 0
15 (p) [None] 0 0
"""
res = tst_reader(doc)
if res != expect:
print "test14 failed"
print res
sys.exit(1)
#
# cleanup for memory allocation counting
#