File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,11 @@ deploy:
10
10
repo : nipy/nitime
11
11
12
12
python :
13
- - 2.7
14
13
- 3.6
15
14
16
- env :
17
- - PIP_DEPS="pip pytest pytest-cov coverage coveralls python-coveralls "
18
-
19
-
20
- python :
21
- - ' 2.7'
22
- - ' 3.6'
23
-
24
15
install :
25
- - travis_retry pip install $PIP_DEPS
16
+ - travis_retry pip install -r requirements-dev.txt
17
+ - travis_retry pip install -r requirements.txt
26
18
- travis_retry pip install -e .
27
19
28
20
script :
Original file line number Diff line number Diff line change 1
1
import sys
2
- import os
2
+ import numpy as np
3
3
import numpy .testing as npt
4
- import numpy .testing .decorators as dec
5
4
6
5
import pytest
7
6
@@ -17,7 +16,8 @@ def test_lazy():
17
16
# repr for mlab should be <module 'matplotlib.mlab' will be lazily loaded>
18
17
assert 'lazily loaded' in repr (mlab )
19
18
# accessing mlab's attribute will cause an import of mlab
20
- npt .assert_equal (mlab .dist (1969 ,2011 ), 42.0 )
19
+ npt .assert_ (np .all (mlab .detrend_mean (np .array ([1 , 2 , 3 ])) ==
20
+ np .array ([- 1. , 0. , 1. ])))
21
21
# now mlab should be of class LoadedLazyImport an repr(mlab) should be
22
22
# <module 'matplotlib.mlab' from # '.../matplotlib/mlab.pyc>
23
23
assert 'lazily loaded' not in repr (mlab )
Original file line number Diff line number Diff line change 1
1
sphinx
2
- pytest
2
+ pytest == 3.6
3
3
pytest-cov
4
4
nibabel
5
5
networkx
You can’t perform that action at this time.
0 commit comments