Closed
Description
Some tests that match test_geo*
in tests/test_commands.py
and tests/test_asyncio/test_commands.py
are not reliable.
We never observed them failing in CI or locally, but I received reports that they failed in some occasions.
These tests expect exact matches between floats e.g.
valkey-py/tests/test_commands.py
Lines 3544 to 3563 in 6c95904
And this doesn't always work.
According to the reports I received, the values are usually off by ~1e-15
Floats should be compared using math.isclose. The default tolerance should be enough.