We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3d98c commit 3bb84c4Copy full SHA for 3bb84c4
nipype/interfaces/tests/test_io.py
@@ -16,7 +16,7 @@
16
import pytest
17
import nipype
18
import nipype.interfaces.io as nio
19
-from nipype.interfaces.base import Undefined
+from nipype.interfaces.base import Undefined, TraitError
20
21
# Check for boto
22
noboto = False
@@ -409,9 +409,8 @@ def test_freesurfersource():
409
410
def test_freesurfersource_incorrectdir():
411
fss = nio.FreeSurferSource()
412
- with pytest.raises(Exception) as err:
+ with pytest.raises(TraitError) as err:
413
fss.inputs.subjects_dir = 'path/to/no/existing/directory'
414
- assert "TraitError" == err.typename
415
416
417
def test_jsonsink_input():
0 commit comments