Skip to content

Relax tolerances in test_bbox_size on Freetype version mismatch - #11021

Closed
dhomeier wants to merge 12 commits into
astropy:masterfrom
dhomeier:bbox-check-freetype
Closed

dhomeier wants to merge 12 commits into
astropy:masterfrom
dhomeier:bbox-check-freetype

Conversation

@dhomeier

Copy link
Copy Markdown
Contributor

Description

Checks for Freetype library Matplotlib is linked against; if not the reference version 2.6.1 Matplotlib mandates for its own tests to reproduce exact comparison images, allow test_bbox_size to check the bounding box extent with relaxed tolerance.

Fixes #11007

This combines several possible approaches to the problem: assuming the failure on Debian is related to its Freetype 2.10, run the test once with wider tolerance and allow it to fail on the stricter comparison. We may only need one of these – assuming the test as introduced by @dstansby in #10797 should assure that the plot fits comfortably within the tightbbox, atol of 0.1 – 0.2 pt would certainly be always acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[4.2rc1] test_bbox_size failure with Python 3.8/3.9

2 participants