File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ htmlcov/
3939.coverage
4040.coverage. *
4141.cache
42- nosetests.xml
4342coverage.xml
4443* ,cover
4544
Original file line number Diff line number Diff line change 66sudo : false
77install :
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
1111script :
12- - nosetests --with-coverage --cover-package traittypes traittypes
12+ - pytest --cov= traittypes traittypes
1313after_success :
1414 - coveralls
Original file line number Diff line number Diff line change 11
2- import nose . tools as nt
2+ import pytest
33
44from ..traittypes import _DelayedImportError
55
6-
7- @nt .raises (RuntimeError )
86def 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 ])
You can’t perform that action at this time.
0 commit comments