Skip to content

handle usecase where QT_API is specified with some capitals #19245

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

hmaarrfk
Copy link
Contributor

@hmaarrfk hmaarrfk commented Jan 6, 2021

PR Summary

I'm not sure why this never triggered an error before.

But we set this environment variable by accident once and I didn't fully understand the error message.

It seems that the QT_API_ENV is expected to be lowercase, but it doesn't really convert the user's potentially uppercase option to lowercase.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@hmaarrfk
Copy link
Contributor Author

hmaarrfk commented Jan 6, 2021

not too sure where to set QT_API so that this gets tested. I couldn't find anywhere obvious where QT_API was set in the CIs.

@QuLogic
Copy link
Member

QuLogic commented Jan 6, 2021

I don't think it is; it's very difficult to get all backends available on CI to test that.

@timhoffm timhoffm modified the milestones: v3.4.0, v3.5.0, v3.3.4 Jan 7, 2021
@timhoffm timhoffm merged commit 792fc13 into matplotlib:master Jan 7, 2021
@timhoffm
Copy link
Member

timhoffm commented Jan 7, 2021

Thanks!

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 7, 2021
QuLogic added a commit that referenced this pull request Jan 7, 2021
…245-on-v3.3.x

Backport PR #19245 on branch v3.3.x (handle usecase where QT_API is specified with some capitals)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants