Skip to content

Commit

Permalink
Backport PR matplotlib#24081: TST: force test with shared test image …
Browse files Browse the repository at this point in the history
…to run in serial
  • Loading branch information
QuLogic authored and meeseeksmachine committed Oct 17, 2022
1 parent 2ca3410 commit de5022d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,18 +896,14 @@ def test_hexbin_extent():
ax.hexbin("x", "y", extent=[.1, .3, .6, .7], data=data)


@image_comparison(['hexbin_empty.png'], remove_text=True)
@image_comparison(['hexbin_empty.png', 'hexbin_empty.png'], remove_text=True)
def test_hexbin_empty():
# From #3886: creating hexbin from empty dataset raises ValueError
ax = plt.gca()
fig, ax = plt.subplots()
ax.hexbin([], [])


@image_comparison(['hexbin_empty.png'], remove_text=True)
def test_hexbin_log_empty():
fig, ax = plt.subplots()
# From #23922: creating hexbin with log scaling from empty
# dataset raises ValueError
ax = plt.gca()
ax.hexbin([], [], bins='log')


Expand Down

0 comments on commit de5022d

Please sign in to comment.