Skip to content

Fix rctemplate tests when user config file exists. #10929

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 1 commit into from
Mar 31, 2018

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Mar 31, 2018

PR Summary

matplotlib_fname returns the first of user config, environment variable-specified config, or default system config. If the user has a matplotlibrc, then this test checks that instead of the system one.

Aiming for 2.2.3 because the test does not pass otherwise.

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

`matplotlib_fname` returns the first of user config, environment
variable-specified config, or default system config. If the user has a
matplotlibrc, then this test checks that instead of the system one.
@@ -447,7 +446,7 @@ def test_if_rctemplate_is_up_to_date():
if k in line:
found = True
if not found:
missing.update({k:v})
missing.update({k: v})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing[k] = v

@tacaswell tacaswell merged commit a0c571b into matplotlib:v2.2.x Mar 31, 2018
@QuLogic QuLogic deleted the rctemplate-path branch March 31, 2018 20:02
matthew-brett added a commit to MacPython/matplotlib-wheels that referenced this pull request Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants