Skip to content

Commit af2ebee

Browse files
authored
Merge pull request #43 from pgajdos/master
do not depend on deprecated nose
2 parents 5b95791 + 9840783 commit af2ebee

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ htmlcov/
3939
.coverage
4040
.coverage.*
4141
.cache
42-
nosetests.xml
4342
coverage.xml
4443
*,cover
4544

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ python:
66
sudo: false
77
install:
88
- pip install -U pip
9-
- pip install -U --upgrade-strategy eager ".[test]" coveralls
9+
- pip install -U --upgrade-strategy eager ".[test]" coveralls pytest-cov
1010
- pip freeze
1111
script:
12-
- nosetests --with-coverage --cover-package traittypes traittypes
12+
- pytest --cov=traittypes traittypes
1313
after_success:
1414
- coveralls
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11

2-
import nose.tools as nt
2+
import pytest
33

44
from ..traittypes import _DelayedImportError
55

6-
7-
@nt.raises(RuntimeError)
86
def test_delayed_access_raises():
97
dummy = _DelayedImportError('mypackage')
10-
dummy.asarray([1, 2, 3])
8+
with pytest.raises(RuntimeError):
9+
dummy.asarray([1, 2, 3])

0 commit comments

Comments
 (0)