1414 skipif )
1515import nipype .interfaces .base as nib
1616from nipype .utils .filemanip import split_filename
17- from nipype .interfaces .base import Undefined , config
17+ from nipype .interfaces .base import Undefined , config , text_type
1818from traits .testing .nose_tools import skip
1919import traits .api as traits
2020
@@ -655,7 +655,7 @@ def test_CommandLine_output():
655655 ci = nib .CommandLine (command = 'ls -l' )
656656 ci .inputs .terminal_output = 'allatonce'
657657 res = ci .run ()
658- yield assert_equal , res .runtime .merged , ''
658+ yield assert_equal , text_type ( res .runtime .merged ), text_type ( '' )
659659 yield assert_true , name in res .runtime .stdout
660660 ci = nib .CommandLine (command = 'ls -l' )
661661 ci .inputs .terminal_output = 'file'
@@ -665,7 +665,7 @@ def test_CommandLine_output():
665665 ci = nib .CommandLine (command = 'ls -l' )
666666 ci .inputs .terminal_output = 'none'
667667 res = ci .run ()
668- yield assert_equal , res .runtime .stdout , ''
668+ yield assert_equal , text_type ( res .runtime .stdout ), text_type ( '' )
669669 ci = nib .CommandLine (command = 'ls -l' )
670670 res = ci .run ()
671671 yield assert_true , 'stdout.nipype' in res .runtime .stdout
0 commit comments