Skip to content

Commit 9688ae5

Browse files
committed
BF - read example files as binary to fix windows read errors
1 parent f0306d3 commit 9688ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/nicom/tests/test_csareader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from .test_dicomwrappers import (have_dicom, dicom_test,
1616
IO_DATA_PATH, DATA)
1717

18-
CSA2_B0 = open(pjoin(IO_DATA_PATH, 'csa2_b0.bin')).read()
19-
CSA2_B1000 = open(pjoin(IO_DATA_PATH, 'csa2_b1000.bin')).read()
18+
CSA2_B0 = open(pjoin(IO_DATA_PATH, 'csa2_b0.bin'), 'rb').read()
19+
CSA2_B1000 = open(pjoin(IO_DATA_PATH, 'csa2_b1000.bin'), 'rb').read()
2020

2121

2222
@dicom_test

0 commit comments

Comments
 (0)