Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Small piece of code moved for not complying with conventions

elpolilla2b6bcd61dffa
diff --git a/scrapy/trunk/scrapy/tests/test_xpath.py b/scrapy/trunk/scrapy/tests/test_xpath.py
index 71be24864..99c06119b 100644
--- a/scrapy/trunk/scrapy/tests/test_xpath.py
+++ b/scrapy/trunk/scrapy/tests/test_xpath.py
@@ -6,9 +6,6 @@ import libxml2
from scrapy.http import Response
from scrapy.xpath.selector import XmlXPathSelector, HtmlXPathSelector
-if __name__ == "__main__":
- unittest.main()
-
class XPathTestCase(unittest.TestCase):
def setUp(self):
@@ -223,3 +220,6 @@ class XPathTestCase(unittest.TestCase):
u'\n ',
u'\n pff\n'])
+
+if __name__ == "__main__":
+ unittest.main()