Skip to content

Commit 00a7594

Browse files
committed
Merge pull request aimacode#135 from chiragvartak/fix-windows-error
Fix verify_query in tests/test_text.py to work with Windows file-paths
2 parents 819544f + 74b2040 commit 00a7594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def verify_query(query, expected):
102102
doc = uc.documents[d]
103103
assert "{0:.2f}".format(
104104
expected.score) == "{0:.2f}".format(score * 100)
105-
assert expected.url == doc.url
105+
assert os.path.basename(expected.url) == os.path.basename(doc.url)
106106

107107
return True
108108

0 commit comments

Comments
 (0)