Skip to content

Commit eb1cf30

Browse files
committed
use pytest.ini to enable twisted plugin
1 parent caab9f2 commit eb1cf30

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
usefixtures = chdir setlog
44
python_files=test_*.py __init__.py
55
addopts = --doctest-modules --assert=plain
6+
twisted = 1
7+

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ deps =
1616
leveldb
1717
-rtests/requirements.txt
1818
commands =
19-
py.test --twisted {posargs:scrapy tests}
19+
py.test {posargs:scrapy tests}
2020

2121
[testenv:precise]
2222
basepython = python2.7
@@ -35,7 +35,7 @@ basepython = python2.7
3535
commands =
3636
pip install -U https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
3737
pip install -U https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
38-
py.test --twisted {posargs:scrapy tests}
38+
py.test {posargs:scrapy tests}
3939

4040
[testenv:py33]
4141
basepython = python3.3

0 commit comments

Comments
 (0)