Skip to content

Commit 516ae7a

Browse files
committed
TEST: Update NBS import test
1 parent 7e83fac commit 516ae7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/cmtk/tests/test_nbs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55
import networkx as nx
66
import pytest
7+
from nibabel.testing import clear_and_catch_warnings
78

89
have_cv = True
910
try:
@@ -41,7 +42,7 @@ def test_importerror(creating_graphs, tmpdir):
4142

4243
with pytest.raises(ImportError) as e:
4344
nbs.run()
44-
assert "cviewer library is not available" == str(e.value)
45+
assert "No module named 'cviewer'" == str(e.value)
4546

4647

4748
@pytest.mark.skipif(not have_cv, reason="cviewer has to be available")

0 commit comments

Comments
 (0)