Skip to content

Commit

Permalink
Merge branch 'master' into apple-silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald committed Sep 3, 2024
2 parents d855175 + ba6dbef commit 6f22547
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ def test_webtrack_cw09(self):
topics = ds.get_topics()
qrels = ds.get_qrels("adhoc")

#check that the qrels match the topics.
# check that the qrels match the topics.
join = topics.merge(qrels, on=["qid"])
self.assertTrue(len(join) > 0)
except requests.exceptions.ConnectionError:
self.skipTest("NIST not reachable")
except urllib.error.URLError:
self.skipTest("NIST not reachable")
except requests.exceptions.HTTPError:
self.skipTest("NIST not reachable")

def test_vaswani_corpus_iter(self):
import pyterrier as pt
Expand Down Expand Up @@ -92,4 +94,4 @@ def test_vaswani(self):
pt.Experiment([pt.terrier.Retriever(dataset.get_index())], *dataset.get_topicsqrels(), ["map"])

if __name__ == "__main__":
unittest.main()
unittest.main()

0 comments on commit 6f22547

Please sign in to comment.