mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
BUG: Fix file separators for windows
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ from skimage.color import rgb2grey
|
||||
# Shared image queue
|
||||
_image_stack = []
|
||||
|
||||
URL_REGEX = re.compile(r'http://|https://|ftp://|file://')
|
||||
URL_REGEX = re.compile(r'http://|https://|ftp://|file://|file:\\')
|
||||
|
||||
|
||||
def is_url(filename):
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import os
|
||||
|
||||
from numpy.testing import *
|
||||
import numpy as np
|
||||
|
||||
@@ -18,7 +20,7 @@ def test_stack_non_array():
|
||||
|
||||
|
||||
def test_imread_url():
|
||||
image_url = 'file://%s/camera.png' % data_dir
|
||||
image_url = 'file:{0}{0}{1}{0}camera.png'.format(os.path.sep, data_dir)
|
||||
image = io.imread(image_url)
|
||||
assert image.shape == (512, 512)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user