Skip to content

Commit 63f894e

Browse files
author
Thiago Perrotta
committed
compare to floor and to round instead of a range
1 parent 7e65d91 commit 63f894e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webdriver/tests/support/fixtures_bidi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ async def assert_pdf_dimensions(pdf, expected_dimensions):
208208
png = await render_pdf_to_png_bidi(pdf)
209209
width, height = png_dimensions(png)
210210

211-
assert floor(cm_to_px(expected_dimensions["height"])) == height
212-
assert floor(cm_to_px(expected_dimensions["width"])) == width
211+
assert height in [floor(cm_to_px(expected_dimensions["height"])), round(cm_to_px(expected_dimensions["height"]))]
212+
assert width in [floor(cm_to_px(expected_dimensions["width"])), round(cm_to_px(expected_dimensions["width"]))]
213213

214214
return assert_pdf_dimensions
215215

0 commit comments

Comments
 (0)