fix libxml2 test

This commit is contained in:
Daniel Graña 2012-05-16 18:54:02 -03:00
parent f530b0b3eb
commit 7fc573a230
1 changed files with 2 additions and 1 deletions

View File

@ -11,8 +11,9 @@ class Libxml2Test(unittest.TestCase):
@libxml2debug
def test_libxml2_bug_2_6_27(self):
# this test will fail in version 2.6.27 but passes on 2.6.29+
import libxml2
html = "<td>1<b>2</b>3</td>"
node = self.libxml2.htmlParseDoc(html, 'utf-8')
node = libxml2.htmlParseDoc(html, 'utf-8')
result = [str(r) for r in node.xpathEval('//text()')]
self.assertEquals(result, ['1', '2', '3'])
node.freeDoc()