Repository navigation
[4.2rc1] test_bbox_size failure with Python 3.8/3.9 #11007
Description
Activity
- changed the title
[-][4.2rc1] test_bbox_size failure with Python 3.8[/-][+][4.2rc1] test_bbox_size failure with Python 3.8/3.9[/+]on Nov 9, 2020 Ah... I think we relaxed the rules to skip this test, @dhomeier ?
cc @astrofrog and @Cadair
Ah... I think we relaxed the rules to skip this test, @dhomeier ?
No, originally this was addressed with
skipif('not MATPLOTLIB_EQ_33'), but this is with 3.3.2.
Per #10952 and #11010 the solution was to test against the correctx1andy1values for different Matplotlib versions, but differentx0values (11.2649 vs. 11.3889 here) have actually not popped up so far.
For 4.2rc1 on OS X with 3.8 and 3.9, this test passes with Matplotlib 3.0.3 and 3.3.2.@olebole do you know if the Debian mpl package is applying any additional patches?
Otherwise, ifget_tightbboxalso returns inconsistent values across different platforms, we might have to skip or xfail that test after all.Reacted by P. L. LimThe Debian patches for matplotlib are here. I don't see anything that would be relevant for
get_tightbbox, but please crosscheck.Don't find anything at a first glance, but I note there are some relaxations for the internal tests. Is the package built against the reference freetype-2.6.1 or a different version?
Matplotlib is built against libfreetype-dev 2.10.2, which is also the current runtime version.
If it depends on tiny things here: it is built against a version of libfreetype with all (from Debian's POV) non-free stuff removed. If this applies to fonts or fontcalcs, there may be subtle differences.
Yes; by default matplotlib requires to test only a build against freetype 2.6.1 to allow exact comparisons against the reference images. I don't know what the wheels or whatever the CI uses are typically built against, but that might affect the bounding box calculation as well.
No idea if there is any straightforward way to probe mpl's freetype version, but checking withatol=0.12could get around this.
Description
When I run the test suite during the build of the Debian package,
test_bbox_sizefails on Python 3.8 and 3.9.Expected behavior
The tests should succeed on all supported Python versions.
Actual behavior
I get the following failure:
Steps to Reproduce
Build (and test) the Debian experimental package (soon in salsa).
System Details