Fixed AppVeyor test

This commit is contained in:
meles5 2015-10-17 18:43:14 +02:00
parent 2398762e85
commit 78c57ad416

View File

@ -64,8 +64,8 @@ def test_resource_url():
path = url.path()
if os.name == "nt":
path = path.replace("/", os.sep)
path = path[-1:]
path = path.lstrip('/')
path = path.replace('/', os.sep)
with open(path, 'r', encoding='utf-8') as f:
assert f.read().splitlines()[0] == "Hello World!"