Skip to content

Commit 99614ae

Browse files
committed
don't force encoding of urls to be utf-8 (we will fix this in formatreader instead)
1 parent 5202367 commit 99614ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bioformats/tests/test_load_using_bioformats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def tearDown(self):
5353

5454
def test_01_01_open_file(self):
5555
path = os.path.join(os.path.dirname(__file__), 'Channel1-01-A-01.tif')
56-
url = "file:" + pathname2url(path).encode("utf-8")
56+
url = "file:" + pathname2url(path)
5757
image, scale = load_image_url(
5858
url, rescale=False, wants_max_intensity=True)
5959
self.assertEqual(image.shape[0], 640)
@@ -71,7 +71,7 @@ def test_01_03_unicode_url(self):
7171
# raise an exception when converting URL to string
7272
#
7373
path = os.path.join(os.path.dirname(__file__), 'Channel1-01-A-01.tif')
74-
url = "file:" + pathname2url(path).encode("utf-8")
74+
url = "file:" + pathname2url(path)
7575
image, scale = load_image_url(
7676
url, rescale=False, wants_max_intensity=True)
7777
self.assertEqual(image.shape[0], 640)

0 commit comments

Comments
 (0)