Skip to content

TST: Fixed part of a test that got displaced in all the changes somehow #7467

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
Nov 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/tests/test_ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ def test_formatstrformatter():
tmp_form = mticker.StrMethodFormatter('{x:05d}')
assert '00002' == tmp_form(2)

# test str.format() style formatter with `pos`
tmp_form = mticker.StrMethodFormatter('{x:03d}-{pos:02d}')
assert '002-01' == tmp_form(2, 1)


percentformatter_test_cases = (
# Check explicitly set decimals over different intervals and values
Expand Down Expand Up @@ -530,10 +534,6 @@ def test_percentformatter(xmax, decimals, symbol, x, display_range, expected):
formatter = mticker.PercentFormatter(xmax, decimals, symbol)
assert formatter.format_pct(x, display_range) == expected

# test str.format() style formatter with `pos`
tmp_form = mticker.StrMethodFormatter('{x:03d}-{pos:02d}')
assert '002-01' == tmp_form(2, 1)


def test_EngFormatter_formatting():
"""
Expand Down