Skip to content

Commit d454c13

Browse files
committed
FIX scikit-learn#1417: move nosetests configuration parameter to setup.cfg
1 parent 821f7a0 commit d454c13

7 files changed

+17
-17
lines changed

Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ inplace:
3131
test-code: in
3232
$(NOSETESTS) -s sklearn
3333
test-doc:
34-
$(NOSETESTS) -s --with-doctest --doctest-tests --doctest-extension=rst \
35-
--doctest-extension=inc --doctest-fixtures=_fixture doc/ doc/modules/ \
34+
$(NOSETESTS) -s doc/ doc/modules/ doc/datasets/ \
3635
doc/developers doc/tutorial/basic doc/tutorial/statistical_inference
3736

3837
test-coverage:
3938
rm -rf coverage .coverage
40-
$(NOSETESTS) -s --with-coverage --cover-html --cover-html-dir=coverage \
41-
--cover-package=sklearn sklearn
39+
$(NOSETESTS) -s --with-coverage sklearn
4240

4341
test: test-code test-doc
4442

doc/datasets/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ features::
172172
_`Faster API-compatible implementation`: https://github.com/mblondel/svmlight-loader
173173

174174

175-
.. include:: olivetti_faces.inc
175+
.. include:: olivetti_faces.rst
176176

177-
.. include:: twenty_newsgroups.inc
177+
.. include:: twenty_newsgroups.rst
178178

179-
.. include:: mldata.inc
179+
.. include:: mldata.rst
180180

181-
.. include:: labeled_faces.inc
181+
.. include:: labeled_faces.rst
182182

doc/datasets/labeled_faces.inc doc/datasets/labeled_faces.rst

-2
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,3 @@ Examples
115115
--------
116116

117117
:ref:`example_applications_face_recognition.py`
118-
119-

doc/datasets/mldata.inc doc/datasets/mldata.rst

-2
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,3 @@ datasets:
6868
... data_home=custom_data_home)
6969
>>> iris3 = fetch_mldata('datasets-UCI iris', target_name='class',
7070
... data_name='double0', data_home=custom_data_home)
71-
72-
File renamed without changes.

doc/datasets/twenty_newsgroups.inc doc/datasets/twenty_newsgroups.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and the other one for testing (or for performance evaluation). The split
99
between the train and test set is based upon a messages posted before
1010
and after a specific date.
1111

12-
This module contains two loaders. The first one,
12+
This module contains two loaders. The first one,
1313
``sklearn.datasets.fetch_20newsgroups``,
1414
returns a list of the raw text files that can be fed to text feature
1515
extractors such as :class:`sklearn.feature_extraction.text.Vectorizer`
@@ -100,7 +100,7 @@ zero features)::
100100
>>> vectors.nnz / vectors.shape[0]
101101
118
102102

103-
``sklearn.datasets.fetch_20newsgroups_vectorized`` is a function which returns
103+
``sklearn.datasets.fetch_20newsgroups_vectorized`` is a function which returns
104104
ready-to-use tfidf features instead of file names.
105105

106106
.. _`20 newsgroups website`: http://people.csail.mit.edu/jrennie/20Newsgroups/
@@ -112,5 +112,3 @@ ready-to-use tfidf features instead of file names.
112112
* :ref:`example_grid_search_text_feature_extraction.py`
113113

114114
* :ref:`example_document_classification_20newsgroups.py`
115-
116-

setup.cfg

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
test = nosetests
55

66
[nosetests]
7+
#with-coverage = 1
8+
cover-html = 1
9+
cover-html-dir = coverage
10+
cover-package = sklearn
11+
712
detailed-errors = 1
813
with-doctest = 1
9-
cover-package = sklearn
14+
doctest-tests = 1
15+
doctest-extension = rst
16+
doctest-fixtures = _fixture
17+
doctest-options = +ELLIPSIS,+NORMALIZE_WHITESPACE

0 commit comments

Comments
 (0)