Skip to content

Commit 51bd9f7

Browse files
committed
TST enable doctests for Python 3
1 parent 444052a commit 51bd9f7

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
if six.PY3:
1212
for fn in open('tests/py3-ignores.txt'):
13-
collect_ignore.append(fn.strip())
13+
if fn.strip():
14+
collect_ignore.append(fn.strip())
1415

1516
class LogObservers:
1617
"""Class for keeping track of log observers across test modules"""

tests/py3-ignores.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,34 @@ tests/test_utils_signal.py
6666
tests/test_utils_template.py
6767
tests/test_utils_url.py
6868
tests/test_webclient.py
69+
70+
scrapy/xlib/tx/iweb.py
71+
scrapy/xlib/tx/interfaces.py
72+
scrapy/xlib/tx/endpoints.py
73+
scrapy/xlib/tx/client.py
74+
scrapy/xlib/tx/_newclient.py
75+
scrapy/xlib/tx/__init__.py
76+
scrapy/xlib/tx/__init__.py
77+
scrapy/utils/testsite.py
78+
scrapy/http/cookies.py
79+
scrapy/core/downloader/handlers/s3.py
80+
scrapy/core/downloader/handlers/http11.py
81+
scrapy/core/downloader/handlers/http.py
82+
scrapy/core/downloader/handlers/ftp.py
83+
scrapy/core/downloader/webclient.py
84+
scrapy/contrib/pipeline/images.py
85+
scrapy/contrib/pipeline/files.py
86+
scrapy/contrib/linkextractors/sgml.py
87+
scrapy/contrib/linkextractors/regex.py
88+
scrapy/contrib/linkextractors/htmlparser.py
89+
scrapy/contrib/downloadermiddleware/retry.py
90+
scrapy/contrib/downloadermiddleware/httpproxy.py
91+
scrapy/contrib/downloadermiddleware/cookies.py
92+
scrapy/contrib/downloadermiddleware/ajaxcrawl.py
93+
scrapy/contrib/statsmailer.py
94+
scrapy/contrib/memusage.py
95+
scrapy/contrib/feedexport.py
96+
scrapy/commands/deploy.py
97+
scrapy/commands/bench.py
98+
scrapy/telnet.py
99+
scrapy/mail.py

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,15 @@ deps =
4747
cssselect>=0.9
4848
queuelib>=1.1.1
4949
w3lib>=1.5
50+
Pillow
5051
# tests requirements
5152
mock
5253
pytest>=2.6.0
5354
pytest-twisted
54-
commands =
55-
py.test {posargs:tests}
5655

5756
[testenv:py34]
5857
basepython = python3.4
5958
deps = {[testenv:py33]deps}
60-
commands =
61-
py.test {posargs:tests}
6259

6360
[testenv:docs]
6461
changedir = docs

0 commit comments

Comments
 (0)