Skip to content

Commit 4cfead7

Browse files
committed
Fix #585 on Windows.
This was fixed in my own repo and I just forgot to bring it over when moving it upstream.
1 parent 14d05dc commit 4cfead7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/jsonschema_suite

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ def url_for_path(path):
7777
Tests in the refRemote.json file reference this URL, and assume the
7878
corresponding contents are available at the URL.
7979
"""
80-
return urljoin(REMOTES_BASE_URL, str(path.relative_to(REMOTES_DIR)))
80+
81+
return urljoin(
82+
REMOTES_BASE_URL,
83+
str(path.relative_to(REMOTES_DIR)).replace("\\", "/") # Windows...
84+
)
8185

8286

8387
class SanityTests(unittest.TestCase):

0 commit comments

Comments
 (0)