Skip to content

Commit 50a60aa

Browse files
committed
Lower snapshot precision for FreeBSD
1 parent 9c494db commit 50a60aa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

hsluv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
haxe -cp haxe/src hsluv.Hsluv -python hsluv.py
66
"""
77

8-
__version__ = '5.0.3'
8+
__version__ = '5.0.4'
99

1010
from functools import wraps as _wraps, partial as _partial # unexport, see #17
1111
import math as _math # unexport, see #17

tests/test_hsluv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
from hsluv import (_hsluv_to_rgb, _hpluv_to_rgb) # no normalized output
1212

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

1617

1718
class TestHsluv(unittest.TestCase):

0 commit comments

Comments
 (0)