Skip to content

Commit fd42335

Browse files
committed
fix: test equality
1 parent 54e53c2 commit fd42335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/tests/test_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
skipif)
1515
import nipype.interfaces.base as nib
1616
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
1818
from traits.testing.nose_tools import skip
1919
import 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

Comments
 (0)