Skip to content

Commit 1fc5591

Browse files
committed
fix: make "bad plot" test fail because fix isn't implemented yet
"classic_mode" had to be disabled for the test to successfully replicate the normal behavior of matplotlib. Now the test produces an empty list, which is what should be fixed.
1 parent da5796c commit 1fc5591

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_ticker.py

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def test_tick_values_correct(self):
249249
assert_array_equal(ll.tick_values(1, 1e7), test_value)
250250

251251
def test_tick_values_not_empty(self):
252+
mpl.rcParams['_internal.classic_mode'] = False
252253
ll = mticker.LogLocator(subs=(1, 2, 5))
253254
test_value = np.array([1.e-01, 2.e-01, 5.e-01, 1.e+00, 2.e+00, 5.e+00,
254255
1.e+01, 2.e+01, 5.e+01, 1.e+02, 2.e+02, 5.e+02,

0 commit comments

Comments
 (0)