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:
elpolilla 2009-01-08 13:46:14 +00:00
parent fc76af2eb4
commit f39b7b507a
1 changed files with 4 additions and 4 deletions

View File

@ -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'