Skip to content

Commit 542f4b1

Browse files
authored
Merge pull request #170 from arokem/drop_py2
Drop Python 2, use requirements-dev in travis config.
2 parents 1ae3370 + 2d2e1b3 commit 542f4b1

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ deploy:
1010
repo: nipy/nitime
1111

1212
python:
13-
- 2.7
1413
- 3.6
1514

16-
env:
17-
- PIP_DEPS="pip pytest pytest-cov coverage coveralls python-coveralls "
18-
19-
20-
python:
21-
- '2.7'
22-
- '3.6'
23-
2415
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
2618
- travis_retry pip install -e .
2719

2820
script:

nitime/tests/test_lazy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
2-
import os
2+
import numpy as np
33
import numpy.testing as npt
4-
import numpy.testing.decorators as dec
54

65
import pytest
76

@@ -17,7 +16,8 @@ def test_lazy():
1716
# repr for mlab should be <module 'matplotlib.mlab' will be lazily loaded>
1817
assert 'lazily loaded' in repr(mlab)
1918
# 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.])))
2121
# now mlab should be of class LoadedLazyImport an repr(mlab) should be
2222
# <module 'matplotlib.mlab' from # '.../matplotlib/mlab.pyc>
2323
assert 'lazily loaded' not in repr(mlab)

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sphinx
2-
pytest
2+
pytest==3.6
33
pytest-cov
44
nibabel
55
networkx

0 commit comments

Comments
 (0)