Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix incorrect skip check in test_backend_ps.#26955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:mainfromanntzer:pst
Sep 29, 2023

Conversation

anntzer
Copy link
Contributor

There was a typo inelif 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.

This broke the mplcairo test suite (where I didn't bother configuring CI to have pdftops installed) so labeling as 3.8.1; "somewhat" release critical (though I guess I could just xfail the test on mplcairo's side instead).

PR summary

PR checklist

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), whichmade the skip check for xpdf never run.  Thus, running the test ona machine without pdftops installed would eventually result in anExecutableNotFoundError when matplotlib actually tries to call thedistiller.To avoid this kind of problems (dict.get hiding typos), directly updatethe test-specific settings into the main rcParams, and use normalbrackets to access rcParams entries, as rcParams keys are a fixed setanyways.
@anntzeranntzer added Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: testing backend: ps labelsSep 28, 2023
@anntzeranntzer added this to thev3.8.1 milestoneSep 28, 2023
@ksunden
Copy link
Member

Anyone can merge on CI passing

@QuLogicQuLogic merged commite237bbd intomatplotlib:mainSep 29, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 29, 2023
@anntzeranntzer deleted the pst branchSeptember 29, 2023 05:47
oscargus added a commit that referenced this pull requestOct 2, 2023
…955-on-v3.8.xBackport PR#26955 on branch v3.8.x (Fix incorrect skip check in test_backend_ps.)
@ksundenksunden mentioned this pull requestNov 2, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Labels
backend: psRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: testing
Projects
None yet
Milestone
v3.8.1
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@ksunden@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp