TST enable doctests for Python 3

This commit is contained in:
Mikhail Korobov 2014-08-01 23:12:52 +06:00
parent 444052a2f9
commit 51bd9f7d64
3 changed files with 34 additions and 5 deletions

View File

@ -10,7 +10,8 @@ if 'django' not in optional_features:
if six.PY3:
for fn in open('tests/py3-ignores.txt'):
collect_ignore.append(fn.strip())
if fn.strip():
collect_ignore.append(fn.strip())
class LogObservers:
"""Class for keeping track of log observers across test modules"""

View File

@ -66,3 +66,34 @@ tests/test_utils_signal.py
tests/test_utils_template.py
tests/test_utils_url.py
tests/test_webclient.py
scrapy/xlib/tx/iweb.py
scrapy/xlib/tx/interfaces.py
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
scrapy/core/downloader/handlers/http.py
scrapy/core/downloader/handlers/ftp.py
scrapy/core/downloader/webclient.py
scrapy/contrib/pipeline/images.py
scrapy/contrib/pipeline/files.py
scrapy/contrib/linkextractors/sgml.py
scrapy/contrib/linkextractors/regex.py
scrapy/contrib/linkextractors/htmlparser.py
scrapy/contrib/downloadermiddleware/retry.py
scrapy/contrib/downloadermiddleware/httpproxy.py
scrapy/contrib/downloadermiddleware/cookies.py
scrapy/contrib/downloadermiddleware/ajaxcrawl.py
scrapy/contrib/statsmailer.py
scrapy/contrib/memusage.py
scrapy/contrib/feedexport.py
scrapy/commands/deploy.py
scrapy/commands/bench.py
scrapy/telnet.py
scrapy/mail.py

View File

@ -47,18 +47,15 @@ deps =
cssselect>=0.9
queuelib>=1.1.1
w3lib>=1.5
Pillow
# tests requirements
mock
pytest>=2.6.0
pytest-twisted
commands =
py.test {posargs:tests}
[testenv:py34]
basepython = python3.4
deps = {[testenv:py33]deps}
commands =
py.test {posargs:tests}
[testenv:docs]
changedir = docs