14
14
skipif )
15
15
import nipype .interfaces .base as nib
16
16
from nipype .utils .filemanip import split_filename
17
- from nipype .interfaces .base import Undefined , config
17
+ from nipype .interfaces .base import Undefined , config , text_type
18
18
from traits .testing .nose_tools import skip
19
19
import traits .api as traits
20
20
@@ -655,7 +655,7 @@ def test_CommandLine_output():
655
655
ci = nib .CommandLine (command = 'ls -l' )
656
656
ci .inputs .terminal_output = 'allatonce'
657
657
res = ci .run ()
658
- yield assert_equal , res .runtime .merged , ''
658
+ yield assert_equal , text_type ( res .runtime .merged ), text_type ( '' )
659
659
yield assert_true , name in res .runtime .stdout
660
660
ci = nib .CommandLine (command = 'ls -l' )
661
661
ci .inputs .terminal_output = 'file'
@@ -665,7 +665,7 @@ def test_CommandLine_output():
665
665
ci = nib .CommandLine (command = 'ls -l' )
666
666
ci .inputs .terminal_output = 'none'
667
667
res = ci .run ()
668
- yield assert_equal , res .runtime .stdout , ''
668
+ yield assert_equal , text_type ( res .runtime .stdout ), text_type ( '' )
669
669
ci = nib .CommandLine (command = 'ls -l' )
670
670
res = ci .run ()
671
671
yield assert_true , 'stdout.nipype' in res .runtime .stdout
0 commit comments