relax text test render threshold

so we pass on win as well, see 981ffe752b (r36581177)
This commit is contained in:
John Cupitt 2019-12-26 14:11:15 +00:00
parent d89df1661a
commit 664796acab
1 changed files with 3 additions and 1 deletions

View File

@ -394,7 +394,9 @@ class TestCreate:
# test autofit
im = pyvips.Image.text("Hello, world!", width=500, height=500)
assert abs(im.width - 500) < 10
# quite a large threshold, since we need to work with a huge range of
# text rendering systems
assert abs(im.width - 500) < 50
def test_tonelut(self):
im = pyvips.Image.tonelut()