From 67c6ef2b2a5ffe71474de2c224fcb002acc66fb4 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Tue, 13 Dec 2022 13:56:40 +0100 Subject: [PATCH] Increase tolerance for almost equal checks in textcat regression test --- spacy/tests/regression/test_issue5501-6000.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/regression/test_issue5501-6000.py b/spacy/tests/regression/test_issue5501-6000.py index a35de92fa..355ffffeb 100644 --- a/spacy/tests/regression/test_issue5501-6000.py +++ b/spacy/tests/regression/test_issue5501-6000.py @@ -49,8 +49,8 @@ def test_issue5551(textcat_config): # All results should be the same because of the fixed seed assert len(results) == 3 ops = get_current_ops() - assert_almost_equal(ops.to_numpy(results[0]), ops.to_numpy(results[1])) - assert_almost_equal(ops.to_numpy(results[0]), ops.to_numpy(results[2])) + assert_almost_equal(ops.to_numpy(results[0]), ops.to_numpy(results[1]), decimal=5) + assert_almost_equal(ops.to_numpy(results[0]), ops.to_numpy(results[2]), decimal=5) def test_issue5838():