Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
agramfort committed Jun 16, 2015
1 parent 617b679 commit e53c67e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ test: in
rm -f .coverage
$(NOSETESTS) -a '!ultra_slow_test' mne

test-full: in
rm -f .coverage
$(NOSETESTS) mne

test-no-network: in
sudo unshare -n -- sh -c 'MNE_SKIP_NETWORK_TESTS=1 nosetests mne'

test-no-testing-data: in
@MNE_SKIP_TESTING_DATASET_TESTS=true \
$(NOSETESTS) mne


test-no-sample-with-coverage: in testing_data
rm -rf coverage .coverage
@MNE_SKIP_SAMPLE_DATASET_TESTS=true \
Expand Down
3 changes: 1 addition & 2 deletions mne/datasets/sample/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""MNE sample dataset
"""

from .sample import (data_path, has_sample_data, get_version,
requires_sample_data)
from .sample import data_path, has_sample_data, get_version
15 changes: 1 addition & 14 deletions mne/datasets/sample/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# Eric Larson <[email protected]>
# License: BSD Style.

import numpy as np

from ...utils import verbose, get_config
from ...utils import verbose
from ...fixes import partial
from ..utils import (has_dataset, _data_path, _data_path_doc,
_get_version, _version_doc)
Expand All @@ -29,14 +27,3 @@ def get_version():
return _get_version('sample')

get_version.__doc__ = _version_doc.format(name='sample')


# Allow forcing of sample dataset skip
def _skip_sample_data():
skip_sample = (get_config('MNE_SKIP_SAMPLE_DATASET_TESTS', 'false') ==
'true')
skip = skip_sample or not has_sample_data()
return skip

requires_sample_data = np.testing.dec.skipif(_skip_sample_data,
'Requires sample dataset')

0 comments on commit e53c67e

Please sign in to comment.