Skip to content

Commit e49a25b

Browse files
committed
BF: Python 3
1 parent 7822a12 commit e49a25b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabel/streamlines/tests/test_tck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from os.path import join as pjoin
55

66
from nibabel.externals.six import BytesIO
7+
from nibabel.py3k import asbytes
78

89
from nose.tools import assert_equal, assert_raises
910

@@ -98,7 +99,8 @@ def test_load_file_with_wrong_information(self):
9899
tck_file = open(DATA['simple_tck_fname'], 'rb').read()
99100

100101
# Simulate a TCK file where `datatype` was incorrectly provided.
101-
new_tck_file = tck_file.replace("Float32LE", "Float32BE")
102+
new_tck_file = tck_file.replace(asbytes("Float32LE"),
103+
asbytes("Float32BE"))
102104
assert_raises(DataError, TckFile.load, BytesIO(new_tck_file))
103105

104106
def test_write_empty_file(self):

0 commit comments

Comments
 (0)