Fixed AppVeyor test
This commit is contained in:
parent
2398762e85
commit
78c57ad416
@ -64,8 +64,8 @@ def test_resource_url():
|
|||||||
path = url.path()
|
path = url.path()
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
path = path.replace("/", os.sep)
|
path = path.lstrip('/')
|
||||||
path = path[-1:]
|
path = path.replace('/', os.sep)
|
||||||
|
|
||||||
with open(path, 'r', encoding='utf-8') as f:
|
with open(path, 'r', encoding='utf-8') as f:
|
||||||
assert f.read().splitlines()[0] == "Hello World!"
|
assert f.read().splitlines()[0] == "Hello World!"
|
||||||
|
Loading…
Reference in New Issue
Block a user