[Tests] Add pytest.approx() to a test

Fixes https://github.com/fonttools/fonttools/issues/3696
This commit is contained in:
Behdad Esfahbod 2024-11-21 12:26:54 -07:00
parent b90ac3c29f
commit 756c893b84

View File

@ -119,7 +119,7 @@ class InterpolatableTest(unittest.TestCase):
"master_2": "'wght=200.0 opsz=60.0'", "master_2": "'wght=200.0 opsz=60.0'",
"master_1_idx": 2, "master_1_idx": 2,
"master_2_idx": 3, "master_2_idx": 3,
"tolerance": 0.9184032411892079, "tolerance": pytest.approx(0.9184032411892079),
}, },
], ],
) )