Skip to content

Commit 2d02de7

Browse files
committed
switch to explicit -n2 where we want it
1 parent 0b563b2 commit 2d02de7

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

scripts/basic-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for k, v in sorted(dict(os.environ).items()):
1818
pip install .
1919

2020

21-
PYTEST="python -m pytest"
21+
PYTEST="python -m pytest -n2"
2222

2323
$PYTEST tests/cover
2424

tox.ini

+10-11
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ whitelist_externals=
1818
bash
1919
setenv=
2020
brief: HYPOTHESIS_PROFILE=speedy
21-
PYTEST_ADDOPTS="-n 2"
2221
passenv=
2322
HOME
2423
TOXENV
@@ -33,22 +32,22 @@ commands =
3332
deps=
3433
-rrequirements/test.txt
3534
commands=
36-
python -m pytest tests/quality/
35+
python -m pytest tests/quality/ -n2
3736

3837
[testenv:oldpy27]
3938
basepython=python2.7.3
4039
deps=
4140
-rrequirements/test.txt
4241
commands=
43-
python -m pytest tests/cover/
42+
python -m pytest tests/cover/ -n2
4443

4544
[testenv:py27typing]
4645
basepython=python2.7
4746
deps=
4847
-rrequirements/test.txt
4948
-rrequirements/typing.txt
5049
commands=
51-
python -m pytest tests/cover/
50+
python -m pytest tests/cover/ -n2
5251

5352
[testenv:unicode]
5453
basepython=python2.7
@@ -80,28 +79,28 @@ deps =
8079
-rrequirements/test.txt
8180
pandas~=0.19.2
8281
commands =
83-
python -m pytest tests/pandas
82+
python -m pytest tests/pandas -n2
8483

8584
[testenv:pandas20]
8685
deps =
8786
-rrequirements/test.txt
8887
pandas~=0.20.3
8988
commands =
90-
python -m pytest tests/pandas
89+
python -m pytest tests/pandas -n2
9190

9291
[testenv:pandas21]
9392
deps =
9493
-rrequirements/test.txt
9594
pandas~=0.21.0
9695
commands =
97-
python -m pytest tests/pandas
96+
python -m pytest tests/pandas -n2
9897

9998
[testenv:pandas22]
10099
deps =
101100
-rrequirements/test.txt
102101
pandas~=0.22.0
103102
commands =
104-
python -m pytest tests/pandas
103+
python -m pytest tests/pandas -n2
105104

106105

107106
[testenv:django18]
@@ -110,20 +109,20 @@ setenv=
110109
commands =
111110
pip install .[pytz]
112111
pip install django~=1.8.18
113-
python -m tests.django.manage test tests.django
112+
python -m tests.django.manage test tests.django -n2
114113

115114
[testenv:django111]
116115
commands =
117116
pip install .[pytz]
118117
pip install django~=1.11.7
119-
python -m tests.django.manage test tests.django
118+
python -m tests.django.manage test tests.django -n2
120119

121120
[testenv:django20]
122121
basepython=python3
123122
commands =
124123
pip install .[pytz]
125124
pip install django~=2.0.1
126-
python -m tests.django.manage test tests.django
125+
python -m tests.django.manage test tests.django -n2
127126

128127
[testenv:nose]
129128
deps =

0 commit comments

Comments
 (0)