From de5022d829dc5f80fef1f4e0ce80272ba36fbc39 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 4 Oct 2022 02:15:59 -0400 Subject: [PATCH] Backport PR #24081: TST: force test with shared test image to run in serial --- lib/matplotlib/tests/test_axes.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index c238009b0be1..4e7d5103e6ad 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -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') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy