We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7822a12 commit e49a25bCopy full SHA for e49a25b
nibabel/streamlines/tests/test_tck.py
@@ -4,6 +4,7 @@
4
from os.path import join as pjoin
5
6
from nibabel.externals.six import BytesIO
7
+from nibabel.py3k import asbytes
8
9
from nose.tools import assert_equal, assert_raises
10
@@ -98,7 +99,8 @@ def test_load_file_with_wrong_information(self):
98
99
tck_file = open(DATA['simple_tck_fname'], 'rb').read()
100
101
# Simulate a TCK file where `datatype` was incorrectly provided.
- new_tck_file = tck_file.replace("Float32LE", "Float32BE")
102
+ new_tck_file = tck_file.replace(asbytes("Float32LE"),
103
+ asbytes("Float32BE"))
104
assert_raises(DataError, TckFile.load, BytesIO(new_tck_file))
105
106
def test_write_empty_file(self):
0 commit comments