Skip to content

Commit c1bcd42

Browse files
MillyJulian
authored andcommitted
Fix test to windows path matching
1 parent a590d6b commit c1bcd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def test_nonexistent_file_with_explicit_base_uri(self):
747747
],
748748
)
749749
error = str(e.exception)
750-
self.assertIn("/someNonexistentFile.json'", error)
750+
self.assertIn(f"{os.sep}someNonexistentFile.json'", error)
751751

752752
def test_invalid_exlicit_base_uri(self):
753753
schema = '{"$ref": "foo.json#definitions/num"}'

0 commit comments

Comments
 (0)