Skip to content

TST: Fixed rcparams test_Issue_1713 test #7328

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

Conversation

Kojoley
Copy link
Member

@Kojoley Kojoley commented Oct 21, 2016

Without the monkey-patching there is no good way to change locale on Windows (LANG env variable has no effect on it).

I also renamed the test to a meaningful name.

Closes #7281

@Kojoley Kojoley added this to the 2.0.1 (next bug fix release) milestone Oct 21, 2016
@Kojoley Kojoley force-pushed the fix-rcparam-unicode-parsing-test branch from 6ea55c0 to e5cb3a6 Compare October 21, 2016 22:40
@@ -224,16 +228,13 @@ def test_legend_edgecolor():
yield _legend_rcparam_helper, rc_dict, target, get_func


def test_Issue_1713():
def test_unicode_parsing():
Copy link
Member

Choose a reason for hiding this comment

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

UTF-8 is also Unicode (sort of), so this test is not really for just Unicode, per se.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but it what the #1713 title says.

Copy link
Member

Choose a reason for hiding this comment

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

I think that's more a symptom of Python 2-ness, "Unicode vs str", but it's not strictly correct.

Copy link
Member

Choose a reason for hiding this comment

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

I much preferred the new title than the old.

@Kojoley Kojoley force-pushed the fix-rcparam-unicode-parsing-test branch from e5cb3a6 to 70285e1 Compare October 24, 2016 15:18
@Kojoley Kojoley changed the title TST: Fixed rcparams unicode parsing test TST: Fixed rcparams test_Issue_1713 test Oct 24, 2016
@NelleV NelleV changed the title TST: Fixed rcparams test_Issue_1713 test [MRG+1] TST: Fixed rcparams test_Issue_1713 test Oct 25, 2016
@tacaswell tacaswell merged commit 6771a18 into matplotlib:master Oct 25, 2016
@QuLogic QuLogic changed the title [MRG+1] TST: Fixed rcparams test_Issue_1713 test TST: Fixed rcparams test_Issue_1713 test Oct 25, 2016
QuLogic pushed a commit that referenced this pull request Oct 25, 2016
@QuLogic
Copy link
Member

QuLogic commented Oct 25, 2016

Backported to v2.x via 6dbbb98.

@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0 (style change major release) Dec 7, 2016
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