Skip to content

Commit

Permalink
ANCE test fix on macOS (castorini#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
lintool authored Apr 10, 2021
1 parent c28d9d3 commit 587fd7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integrations/test_ance.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def test_msmarco_doc_ance_bf(self):
score = parse_score(stdout, "MRR @100")
self.assertEqual(status, 0)
self.assertEqual(stderr, '')
self.assertAlmostEqual(score, 0.3797, places=4)
# We get a small difference, 0.3794 on macOS.
self.assertAlmostEqual(score, 0.3797, delta=0.0003)

def test_nq_test_ance_bf(self):
output_file = 'test_run.ance.nq-test.multi.bf.trec'
Expand Down

0 comments on commit 587fd7b

Please sign in to comment.