File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 25
25
26
26
27
27
class NipypeTester (object ):
28
- def __call__ (self , doctests = True , parallel = True ):
28
+ def __call__ (self , doctests = True , parallel = False ):
29
29
try :
30
30
import pytest
31
- except :
31
+ except ImportError :
32
32
raise RuntimeError (
33
33
'py.test not installed, run: pip install pytest' )
34
34
args = []
35
35
if not doctests :
36
36
args .extend (['-p' , 'no:doctest' ])
37
- if not parallel :
37
+ if parallel :
38
+ try :
39
+ import xdist
40
+ except ImportError :
41
+ raise RuntimeError (
42
+ "pytest-xdist required for parallel run" )
38
43
args .append ('-n0' )
39
44
args .append (os .path .dirname (__file__ ))
40
45
pytest .main (args = args )
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ def get_nipype_gitversion():
109
109
SCIPY_MIN_VERSION = '0.14'
110
110
TRAITS_MIN_VERSION = '4.6'
111
111
DATEUTIL_MIN_VERSION = '2.2'
112
- PYTEST_MIN_VERSION = '3.6'
113
112
FUTURE_MIN_VERSION = '0.16.0'
114
113
SIMPLEJSON_MIN_VERSION = '3.8.0'
115
114
PROV_VERSION = '1.5.2'
@@ -160,8 +159,7 @@ def get_nipype_gitversion():
160
159
161
160
TESTS_REQUIRES = [
162
161
'mock' ,
163
- 'pytest>=%s' % PYTEST_MIN_VERSION ,
164
- 'pytest-xdist' ,
162
+ 'pytest' ,
165
163
'pytest-cov' ,
166
164
'codecov' ,
167
165
'pytest-env' ,
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
norecursedirs = .git build dist doc nipype/external tools examples src
3
- addopts = --doctest-modules -n auto
3
+ addopts = --doctest-modules
4
4
doctest_optionflags = ALLOW_UNICODE NORMALIZE_WHITESPACE
5
5
env =
6
6
PYTHONHASHSEED =0
You can’t perform that action at this time.
0 commit comments