10000 fix test docstring PEP8 errors in test_ticker.py · matplotlib/matplotlib@d27c8ac · GitHub
[go: up one dir, main page]

Skip to content

Commit d27c8ac

Browse files
committed
fix test docstring PEP8 errors in test_ticker.py
1 parent 66f29a3 commit d27c8ac

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/matplotlib/tests/test_ticker.py

Lines 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