remove scrapy.utils.testsite from PY3 ignores

This commit is contained in:
Mikhail Korobov 2015-08-01 00:43:13 +05:00
parent d05cf6e0af
commit 9316b2317b
3 changed files with 7 additions and 2 deletions

View File

@ -8,6 +8,7 @@ def _py_files(folder):
collect_ignore = [
# deprecated or moved modules
"scrapy/conf.py",
"scrapy/stats.py",
"scrapy/project.py",
@ -19,6 +20,10 @@ collect_ignore = [
"scrapy/command.py",
"scrapy/linkextractor.py",
"scrapy/spider.py",
# not a test, but looks like a test
"scrapy/utils/testsite.py",
] + _py_files("scrapy/contrib") + _py_files("scrapy/contrib_exp")

View File

@ -4,6 +4,7 @@ from six.moves.urllib.parse import urljoin
from twisted.internet import reactor
from twisted.web import server, resource, static, util
class SiteTest(object):
def setUp(self):
@ -18,6 +19,7 @@ class SiteTest(object):
def url(self, path):
return urljoin(self.baseurl, path)
def test_site():
r = resource.Resource()
r.putChild("text", static.Data("Works", "text/plain"))

View File

@ -52,8 +52,6 @@ scrapy/xlib/tx/endpoints.py
scrapy/xlib/tx/client.py
scrapy/xlib/tx/_newclient.py
scrapy/xlib/tx/__init__.py
scrapy/xlib/tx/__init__.py
scrapy/utils/testsite.py
scrapy/http/cookies.py
scrapy/core/downloader/handlers/s3.py
scrapy/core/downloader/handlers/http11.py