From af8abbb870562f38fa8f760f0462645277dc0e89 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Wed, 17 Aug 2022 15:13:08 +0300 Subject: [PATCH] Squashed 'json/' changes from 14d05dcea..4cfead7ba 4cfead7ba Fix #585 on Windows. git-subtree-dir: json git-subtree-split: 4cfead7ba7b1af840eaf95f19a088c89ed67b5a9 --- bin/jsonschema_suite | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/jsonschema_suite b/bin/jsonschema_suite index 85642b1c6..8cc28508b 100755 --- a/bin/jsonschema_suite +++ b/bin/jsonschema_suite @@ -77,7 +77,11 @@ def url_for_path(path): Tests in the refRemote.json file reference this URL, and assume the corresponding contents are available at the URL. """ - return urljoin(REMOTES_BASE_URL, str(path.relative_to(REMOTES_DIR))) + + return urljoin( + REMOTES_BASE_URL, + str(path.relative_to(REMOTES_DIR)).replace("\\", "/") # Windows... + ) class SanityTests(unittest.TestCase):