You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a typo in `elif rcParams.get("ps.userdistiller") == "xpdf"`
which effectively always returned False (the correct spelling is
"ps.usedistiller", so the get() call always returned None), which
made the skip check for xpdf never run. Thus, running the test on
a machine without pdftops installed would eventually result in an
ExecutableNotFoundError when matplotlib actually tries to call the
distiller.
To avoid this kind of problems (dict.get hiding typos), directly update
the test-specific settings into the main rcParams, and use normal
brackets to access rcParams entries, as rcParams keys are a fixed set
anyways.
0 commit comments