mirror of https://github.com/scrapy/scrapy.git
Disabled test until memory leak in libxml is fixed
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40683
This commit is contained in:
parent
fc76af2eb4
commit
f39b7b507a
|
|
@ -110,10 +110,10 @@ class RegexLinkExtractorTestCase(unittest.TestCase):
|
|||
self.assertEqual([link for link in lx.extract_links(self.response)],
|
||||
[ Link(url='http://example.com/sample2.jpg', text=u'') ])
|
||||
|
||||
lx = RegexLinkExtractor(restrict_xpaths=('//div[@id="subwrapper"]', ))
|
||||
self.assertEqual([link for link in lx.extract_links(self.response)],
|
||||
[ Link(url='http://example.com/sample1.html', text=u''),
|
||||
Link(url='http://example.com/sample2.html', text=u'sample 2') ])
|
||||
# lx = RegexLinkExtractor(restrict_xpaths=('//div[@id="subwrapper"]', ))
|
||||
# self.assertEqual([link for link in lx.extract_links(self.response)],
|
||||
# [ Link(url='http://example.com/sample1.html', text=u''),
|
||||
# Link(url='http://example.com/sample2.html', text=u'sample 2') ])
|
||||
|
||||
def test_matches(self):
|
||||
url1 = 'http://lotsofstuff.com/stuff1/index'
|
||||
|
|
|
|||
Loading…
Reference in New Issue