Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc503f2

Browse filesBrowse files
authored
Merge pull request matplotlib#7467 from madphysicist/ticker-test-fixup
TST: Fixed part of a test that got displaced in all the changes somehow
2 parents 631e079 + f38a7d0 commit fc503f2
Copy full SHA for fc503f2

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎lib/matplotlib/tests/test_ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_ticker.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ def test_formatstrformatter():
499499
tmp_form = mticker.StrMethodFormatter('{x:05d}')
500500
assert '00002' == tmp_form(2)
501501

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

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

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

538538
def test_EngFormatter_formatting():
539539
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.