Skip to content

Commit de5022d

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #24081: TST: force test with shared test image to run in serial
1 parent 2ca3410 commit de5022d

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)