Skip to content

Commit 76a5711

Browse files
authored
Merge pull request #24081 from tacaswell/fix_shared_test_image
TST: force test with shared test image to run in serial
2 parents 0517187 + 8ade798 commit 76a5711

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -894,18 +894,14 @@ def test_hexbin_extent():
894894
ax.hexbin("x", "y", extent=[.1, .3, .6, .7], data=data)
895895

896896

897-
@image_comparison(['hexbin_empty.png'], remove_text=True)
897+
@image_comparison(['hexbin_empty.png', 'hexbin_empty.png'], remove_text=True)
898898
def test_hexbin_empty():
899899
# From #3886: creating hexbin from empty dataset raises ValueError
900-
ax = plt.gca()
900+
fig, ax = plt.subplots()
901901
ax.hexbin([], [])
902-
903-
904-
@image_comparison(['hexbin_empty.png'], remove_text=True)
905-
def test_hexbin_log_empty():
902+
fig, ax = plt.subplots()
906903
# From #23922: creating hexbin with log scaling from empty
907904
# dataset raises ValueError
908-
ax = plt.gca()
909905
ax.hexbin([], [], bins='log')
910906

911907

0 commit comments

Comments
 (0)