From 2b2bd943d29ee4d68594c12dba5a4a0ec087fc8b Mon Sep 17 00:00:00 2001 From: Rob Speer Date: Thu, 31 Oct 2013 15:43:19 -0400 Subject: [PATCH] make the tests less picky about numerical exactness --- tests/test_queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_queries.py b/tests/test_queries.py index 70205fe..bc7e148 100644 --- a/tests/test_queries.py +++ b/tests/test_queries.py @@ -28,8 +28,8 @@ def test_freq_examples(): def test_compatibility(): - eq_(metanl_word_frequency('the|en'), 1e9) - eq_(metanl_word_frequency('the|en', offset=1e9), 2e9) + assert_almost_equal(metanl_word_frequency('the|en'), 1e9, places=3) + assert_almost_equal(metanl_word_frequency('the|en', offset=1e9), 2e9, places=3) def _check_normalized_frequencies(wordlist, lang):