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 dc9409b

Browse filesBrowse files
committed
fix test docstring PEP8 errors in test_ticker.py
1 parent f09a1b4 commit dc9409b
Copy full SHA for dc9409b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed

‎lib/matplotlib/tests/test_ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_ticker.py
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,10 @@ def test_params(self, input, expected):
576576
"""
577577
Test the formatting of EngFormatter for various values of the 'places'
578578
argument, in several cases:
579-
0. without unit but with a space separator;
580-
1. with both a unit and a space separator;
581-
2. with a unit but no space separator;
582-
3. with neihter a unit nor a space separator.
579+
0. without a unit symbol but with a (default) space separator;
580+
1. with both a unit symbol and a (default) space separator;
581+
2x. with both a unit symbol and some non default separators;
582+
3x. without a unit symbol but with some non default separators.
583583
"""
584584

585585
UNIT = 's' # seconds
@@ -611,13 +611,12 @@ def test_params(self, input, expected):
611611

612612
# Test several non default separators: no separator, a narrow
613613
# no-break space (unicode character) and an extravagant string.
614-
for _sep in ("","\u202f", "@_@"):
614+
for _sep in ("", "\u202f", "@_@"):
615615
# Case 2x: unit=UNIT and sep=_sep.
616616
# Remove the space separator from the reference case.
617617
exp_outputs = (_s + _sep + UNIT if _s[-1] in DIGITS # no prefix
618618
else _s.replace(" ", _sep) + UNIT
619619
for _s in expected)
620-
#exp_outputs = list(_s.replace(" ", _sep) + UNIT for _s in expected)
621620
formatters = (
622621
mticker.EngFormatter(unit=UNIT, sep=_sep), # places=None
623622
mticker.EngFormatter(unit=UNIT, places=0, sep=_sep),

0 commit comments

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