Skip to content

Commit aecc2db

Browse files
committed
Fix colorbar test
1 parent b4701cd commit aecc2db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_colorbar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,10 @@ def test_colorbar_lognorm_extension(extend):
552552

553553
def test_colorbar_powernorm_extension():
554554
# Test that colorbar with powernorm is extended correctly
555-
f, ax = plt.subplots()
556-
cb = Colorbar(ax, norm=PowerNorm(gamma=0.5, vmin=0.0, vmax=1.0),
557-
orientation='vertical', extend='both')
558-
assert cb._values[0] >= 0.0
555+
# Just a smoke test that adding the colorbar doesn't raise an error or warning
556+
fig, ax = plt.subplots()
557+
Colorbar(ax, norm=PowerNorm(gamma=0.5, vmin=0.0, vmax=1.0),
558+
orientation='vertical', extend='both')
559559

560560

561561
def test_colorbar_axes_kw():

0 commit comments

Comments
 (0)