summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilly <milly.ca@gmail.com>2021-02-06 11:09:35 +0900
committerJulian Berman <Julian@GrayVines.com>2021-02-20 20:14:11 -0500
commitc1bcd426d533f004bcd6fe3e1dd27cfc0635c167 (patch)
treebbefafe2702e282f26d9b572583f4d7aba7c2891
parenta590d6ba0e70177725092a728a84d86276aeafc0 (diff)
downloadjsonschema-c1bcd426d533f004bcd6fe3e1dd27cfc0635c167.tar.gz
Fix test to windows path matching
-rw-r--r--jsonschema/tests/test_cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py
index 22528fe..884a037 100644
--- a/jsonschema/tests/test_cli.py
+++ b/jsonschema/tests/test_cli.py
@@ -747,7 +747,7 @@ class TestCLI(TestCase):
],
)
error = str(e.exception)
- self.assertIn("/someNonexistentFile.json'", error)
+ self.assertIn(f"{os.sep}someNonexistentFile.json'", error)
def test_invalid_exlicit_base_uri(self):
schema = '{"$ref": "foo.json#definitions/num"}'