File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ CYTHON ?= cython
7
7
NOSETESTS ?= nosetests
8
8
CTAGS ?= ctags
9
9
10
+ # skip doctests on 32bit python
11
+ BITS := $(shell python -c 'import struct; print(8 * struct.calcsize("P") )')
12
+
13
+ ifeq ($(BITS ) ,32)
14
+ NOSETESTS: =$(NOSETESTS ) -c setup32.cfg
15
+ endif
16
+
17
+
10
18
all : clean inplace test
11
19
12
20
clean-ctags :
@@ -28,9 +36,11 @@ test-code: in
28
36
test-sphinxext :
29
37
$(NOSETESTS ) -s -v doc/sphinxext/
30
38
test-doc :
39
+ ifeq ($(BITS ) ,64)
31
40
$(NOSETESTS) -s -v doc/*.rst doc/modules/ doc/datasets/ \
32
41
doc/developers doc/tutorial/basic doc/tutorial/statistical_inference \
33
42
doc/tutorial/text_analytics
43
+ endif
34
44
35
45
test-coverage :
36
46
rm -rf coverage .coverage
Original file line number Diff line number Diff line change
1
+ # This config file is here to skip doctests on 32bit linux when running make or make test
2
+ # For newer versions of nose, we can simply use "NOSE_IGNORE_CONFIG_FILES", which
3
+ # we should do in the future.
4
+
5
+ [aliases]
6
+ # python2.7 has upgraded unittest and it is no longer compatible with some
7
+ # of our tests, so we run all through nose
8
+ test = nosetests
9
+
10
+ [nosetests]
11
+ # nosetests skips test files with the executable bit by default
12
+ # which can silently hide failing tests.
13
+ # There are no executable scripts within the scikit-learn project
14
+ # so let's turn the --exe flag on to avoid skipping tests by
15
+ # mistake.
16
+ exe = 1
17
+ cover-html = 1
18
+ cover-html-dir = coverage
19
+ cover-package = sklearn
20
+
21
+ detailed-errors = 1
22
+ with-doctest = 0
You can’t perform that action at this time.
0 commit comments