Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6afde26

Browse files
committed
TST: Re-generate SVG files that use fonttype='none'
We currently special-case the SVG converter depending on if it used fonttype='none', and use one that has our base fonts available. However, this is not based on the rcParam setting (because we don't have that at conversion time), but on whether the SVG text contains the font styling [1]. This check for styling uses the _current_ version, which was changed way back in #19253. These files were never re-generated though, and used the old version of the style, meaning the expected images never triggered the special converter. The result images are written with the current style, and _do_ trigger the special conveter. Evidentally, this never was a problem for most developers, because everyone had DejaVu Sans installed globally, so the expected images matched. However, on the clean macOS CI, it's not installed globally, so the expected images get converted with the wrong font, and the test fails. [1] https://github.com/matplotlib/matplotlib/blob/de1102668dbc0694e98653bd17641e9d99394e57/lib/matplotlib/testing/compare.py#L303
1 parent ad40092 commit 6afde26

File tree

2 files changed

+117
-95
lines changed

2 files changed

+117
-95
lines changed

0 commit comments

Comments
 (0)