Skip to content

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

Simplify tox.ini asyncio entries.

Andrey Rakhmatullinafc886e57865
diff --git a/tox.ini b/tox.ini
index a4edae439..795c20233 100644
--- a/tox.ini
+++ b/tox.ini
@@ -107,14 +107,16 @@ deps =
reppy
robotexclusionrulesparser
+[asyncio]
+commands =
+ py.test --cov=scrapy --cov-report= --reactor=asyncio {posargs:scrapy tests}
+
[testenv:py35-asyncio]
basepython = python3.5
deps = {[testenv]deps}
-commands =
- py.test --cov=scrapy --cov-report= --reactor=asyncio {posargs:scrapy tests}
+commands = {[asyncio]commands}
[testenv:py38-asyncio]
basepython = python3.8
deps = {[testenv]deps}
-commands =
- py.test --cov=scrapy --cov-report= --reactor=asyncio {posargs:scrapy tests}
+commands = {[asyncio]commands}