Skip to content

Commit

Permalink
Lower snapshot precision for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
boronine committed Sep 11, 2023
1 parent 9c494db commit 50a60aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hsluv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
haxe -cp haxe/src hsluv.Hsluv -python hsluv.py
"""

__version__ = '5.0.3'
__version__ = '5.0.4'

from functools import wraps as _wraps, partial as _partial # unexport, see #17
import math as _math # unexport, see #17
Expand Down
3 changes: 2 additions & 1 deletion tests/test_hsluv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from hsluv import (_hsluv_to_rgb, _hpluv_to_rgb) # no normalized output

rgb_range_tolerance = 1e-11
snapshot_tolerance = 1e-11
# Note: we had 1e-11 precision before, but lowered it for FreeBSD: https://github.com/hsluv/hsluv/issues/87
snapshot_tolerance = 1e-10


class TestHsluv(unittest.TestCase):
Expand Down

0 comments on commit 50a60aa

Please sign in to comment.