From c1bcd426d533f004bcd6fe3e1dd27cfc0635c167 Mon Sep 17 00:00:00 2001 From: Milly Date: Sat, 6 Feb 2021 11:09:35 +0900 Subject: Fix test to windows path matching --- jsonschema/tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jsonschema/tests/test_cli.py') 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"}' -- cgit v1.2.1