mirror of https://github.com/scrapy/scrapy.git
fix libxml2 test
This commit is contained in:
parent
f530b0b3eb
commit
7fc573a230
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue