8000 Remove unnecessary string format · matplotlib/matplotlib@8d086e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d086e0

Browse files
committed
Remove unnecessary string format
1 parent 4d96e47 commit 8d086e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ def test_EngFormatter_formatting():
545545
"""
546546
eng_formatter = mticker.EngFormatter(places=places, space_sep=False)
547547
# Remove the space separator from the reference cases
548-
test_cases = ((val, u"{s:s}".format(s=s.replace(" ", "")))
549-
for val, s in ref_cases)
548+
test_cases = ((val, s.replace(" ", "")) for val, s in ref_cases)
550549
for value, expected_string in test_cases:
551550
nose.tools.assert_equal(eng_formatter(value), expected_string)
552551

0 commit comments

Comments
 (0)
0