Skip to content

Commit 5866cbd

Browse files
Copilothombit
andcommitted
Increase tolerance in test_json_serialization to fix flaky test
Co-authored-by: hombit <[email protected]>
1 parent 6a6b39c commit 5866cbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

light-curve/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist/
88
.tox/
99
*.pyc
1010
target/
11+
venv/

light-curve/tests/light_curve_ext/test_feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_json_serialization(feature):
431431

432432
from_to_json = lc.feature_from_json(feature.to_json())
433433
values_from_to_json = from_to_json(*data)
434-
assert_allclose(values, values_from_to_json)
434+
assert_allclose(values, values_from_to_json, rtol=1e-6)
435435

436436

437437
def test_json_deserialization():

0 commit comments

Comments
 (0)