Skip to content

Commit 5c3a146

Browse files
authored
Merge pull request matplotlib#24206 from meeseeksmachine/auto-backport-of-pr-24081-on-v3.6.x
Backport PR matplotlib#24081 on branch v3.6.x (TST: force test with shared test image to run in serial)
2 parents 4881020 + de5022d commit 5c3a146

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
@@ -896,18 +896,14 @@ def test_hexbin_extent():
896896
ax.hexbin("x", "y", extent=[.1, .3, .6, .7], data=data)
897897

898898

899-
@image_comparison(['hexbin_empty.png'], remove_text=True)
899+
@image_comparison(['hexbin_empty.png', 'hexbin_empty.png'], remove_text=True)
900900
def test_hexbin_empty():
901901
# From #3886: creating hexbin from empty dataset raises ValueError
902-
ax = plt.gca()
902+
fig, ax = plt.subplots()
903903
ax.hexbin([], [])
904-
905-
906-
@image_comparison(['hexbin_empty.png'], remove_text=True)
907-
def test_hexbin_log_empty():
904+
fig, ax = plt.subplots()
908905
# From #23922: creating hexbin with log scaling from empty
909906
# dataset raises ValueError
910-
ax = plt.gca()
911907
ax.hexbin([], [], bins='log')
912908

913909

0 commit comments

Comments
 (0)