Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 960efc3

Browse files
committed
TST: Remove dead code for LogFormatterSciNotation test
`LogFormatterSciNotation.sublabel` is not an attribute that exists. There is the private `LogFormatterSciNotation._sublabels`, but this obviously doesn't need to be set as the test is already passing.
1 parent f900a84 commit 960efc3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,6 @@ class TestLogFormatterSciNotation:
971971
@pytest.mark.parametrize('base, value, expected', test_data)
972972
def test_basic(self, base, value, expected):
973973
formatter = mticker.LogFormatterSciNotation(base=base)
974-
formatter.sublabel = {1, 2, 5, 1.2}
975974
with mpl.rc_context({'text.usetex': False}):
976975
assert formatter(value) == expected
977976

0 commit comments

Comments
 (0)