Run tests without asyncio support by default, add py35-asyncio and py38-asyncio envs.

This commit is contained in:
Andrey Rakhmatullin 2019-11-21 23:40:16 +05:00
parent 794cf71806
commit c079d5002b
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,6 @@ python_classes=
addopts =
--assert=plain
--doctest-modules
--reactor=asyncio
--ignore=docs/_ext
--ignore=docs/conf.py
--ignore=docs/news.rst

10
tox.ini
View File

@ -107,8 +107,14 @@ deps =
reppy
robotexclusionrulesparser
[testenv:py38-no-asyncio]
[testenv:py35-asyncio]
basepython = python3.5
deps = {[testenv]deps}
commands =
py.test --cov=scrapy --cov-report= --reactor=asyncio {posargs:scrapy tests}
[testenv:py38-asyncio]
basepython = python3.8
deps = {[testenv]deps}
commands =
py.test --cov=scrapy --cov-report= --reactor=default {posargs:scrapy tests}
py.test --cov=scrapy --cov-report= --reactor=asyncio {posargs:scrapy tests}