diff --git a/tests/test_sanity.py b/tests/test_sanity.py
index 01a2e05d4bb952960210b532932a6ee3b25eea86..55e3afbffdf374f1afe68f8d3304e5aa627c8a60 100644
--- a/tests/test_sanity.py
+++ b/tests/test_sanity.py
@@ -9,8 +9,8 @@ def test_sanity(capsys):
     assert len(version) >= 3, version
 
 
-def almost_equal(s1, s2, threshold=0.9) -> bool:
-    return SequenceMatcher(a=s1, b=s2).ratio() > threshold
+def assert_almost_equal(s1, s2, threshold=0.9):
+    assert SequenceMatcher(a=s1, b=s2).ratio() > threshold
 
 
 def test_run_repeat(capsys):
@@ -19,7 +19,7 @@ def test_run_repeat(capsys):
     l1 = capsys.readouterr().out  # reset the internal buffer.
     bitia.__main__.run_user_input("ls -ltr /", rerun=False)
     l2 = capsys.readouterr().out
-    assert almost_equal(l1, l2, 0.95)
+    assert_almost_equal(l1, l2, 0.9)
 
 
 def test_run_simple(capsys):
@@ -31,4 +31,4 @@ def test_run_simple(capsys):
     bitia.__main__.run_user_input("ls -ltr /", rerun=True)
     captured = capsys.readouterr()
     l2 = captured.out
-    assert almost_equal(l1, l2, 0.88)
+    assert_almost_equal(l1, l2, 0.88)