File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,19 @@ Description: Force usage of Python3
35
35
36
36
trailing-spaces:
37
37
find . -name "*[.py|.rst]" -type f | xargs perl -pi -e 's/[ \t]*$$//'
38
+ @@ -56,10 +56,10 @@ inplace:
39
+ $(PYTHON) setup.py build_ext -i
40
+
41
+ test-code: in
42
+ - py.test --doctest-modules nipype
43
+ + py.test-3 --doctest-modules nipype
44
+
45
+ test-coverage: clean-tests in
46
+ - py.test --doctest-modules --cov-config .coveragerc --cov=nipype nipype
47
+ + py.test-3 --doctest-modules --cov-config .coveragerc --cov=nipype nipype
48
+
49
+ test: tests # just another name
50
+ tests: clean test-code
38
51
@@ -70,7 +70,7 @@ html:
39
52
40
53
specs:
@@ -66,3 +79,14 @@ Description: Force usage of Python3
66
79
../../../examples/frontiers_paper""")
67
80
os.chdir(doc_path)
68
81
82
+ --- a/nipype/__init__.py
83
+ +++ b/nipype/__init__.py
84
+ @@ -36,7 +36,7 @@ class NipypeTester(object):
85
+ try:
86
+ import pytest
87
+ except ImportError:
88
+ - raise RuntimeError("py.test not installed, run: pip install pytest")
89
+ + raise RuntimeError("py.test-3 not installed, run: pip install pytest")
90
+ args = []
91
+ if not doctests:
92
+ args.extend(["-p", "no:doctest"])
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ override_dh_auto_test:
35
35
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS ) ) )
36
36
export PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3); \
37
37
cd build && \
38
- MPLCONFIGDIR =$(CURDIR ) /build LC_ALL=C.UTF-8 py.test -v --doctest-modules ../nipype
38
+ MPLCONFIGDIR =$(CURDIR ) /build LC_ALL=C.UTF-8 py.test-3 -v --doctest-modules ../nipype
39
39
# test_mesh_ops needs X for bloody tvtk.api, and then fails anyways with current mayavi2/tvtk:
40
40
# https://github.com/nipy/nipype/issues/1218, so skipping it for now
41
41
endif
You can’t perform that action at this time.
0 commit comments