From 06964cf36b6da18fc606a02bbbe5d3e57b6f3252 Mon Sep 17 00:00:00 2001 From: elpolilla Date: Thu, 11 Sep 2008 12:13:33 +0000 Subject: [PATCH] some small semantics errors fixed in xpath test --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40222 --- scrapy/trunk/scrapy/tests/test_xpath.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scrapy/trunk/scrapy/tests/test_xpath.py b/scrapy/trunk/scrapy/tests/test_xpath.py index 57600b786..71be24864 100644 --- a/scrapy/trunk/scrapy/tests/test_xpath.py +++ b/scrapy/trunk/scrapy/tests/test_xpath.py @@ -1,11 +1,13 @@ -import os import re import unittest import libxml2 from scrapy.http import Response -from scrapy.xpath.selector import XPathSelector, XmlXPathSelector, HtmlXPathSelector +from scrapy.xpath.selector import XmlXPathSelector, HtmlXPathSelector + +if __name__ == "__main__": + unittest.main() class XPathTestCase(unittest.TestCase): @@ -192,7 +194,7 @@ class XPathTestCase(unittest.TestCase): u'lala') def test_unquote(self): - xmldoc='\n'.join(( + xmldoc = '\n'.join(( '', ' lala', ' ', @@ -221,5 +223,3 @@ class XPathTestCase(unittest.TestCase): u'\n ', u'\n pff\n']) - if __name__ == "__main__": - unittest.main()