8000 Remove some remnants of Py2-handling in test_rcparams. by anntzer · Pull Request #11874 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove some remnants of Py2-handling in test_rcparams. #11874

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
Aug 17, 2018

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Aug 17, 2018

Also reindent a misindented dict.

PR Summary

PR Checklist

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

@@ -332,71 +332,60 @@ def generate_validator_testcases(valid):
),
'fail': (('aardvark', ValueError),
)
},
{'validator': validate_markevery,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part of the diff is just removing one space at the front of each line (note how the quote under 'validator' was previously not aligned with the quote under 'fail' just above).

# perform such a conversion, so the same cases should raise an exception.
#
# Common cases:
ls_test = {'validator': _validate_linestyle,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved this to the main list of test cases above.

@WeatherGod
Copy link
Member

I wonder why the coverage dropped, though?

@WeatherGod
Copy link
Member

perhaps it is because the 'dotted'.encode('ascii') case was dropped?

@anntzer
Copy link
Con 8000 tributor Author
anntzer commented Aug 17, 2018

Likely. Note that that's exactly the same thing as b"dotted", though.

@jklymak jklymak merged commit f2ae08a into matplotlib:master Aug 17, 2018
@jklymak jklymak added this to the v3.1 milestone Aug 17, 2018
@anntzer anntzer deleted the test_rcparams-py2 branch August 17, 2018 16:22
@QuLogic QuLogic modified the milestones: v3.1, v3.0 Aug 17, 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
0