Skip to content

Commit e47cfea

Browse files
committed
TST: fix pgf tests
1 parent 14747cf commit e47cfea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@
1313
from matplotlib.testing.compare import compare_images, ImageComparisonFailure
1414
from matplotlib.backends.backend_pgf import PdfPages
1515
from matplotlib.testing.decorators import (
16-
_image_directories, check_figures_equal, image_comparison)
16+
_baseline_directory, _results_directory, check_figures_equal, image_comparison)
1717
from matplotlib.testing._markers import (
1818
needs_ghostscript, needs_pgf_lualatex, needs_pgf_pdflatex,
1919
needs_pgf_xelatex)
2020

2121

22-
baseline_dir, result_dir = _image_directories(lambda: 'dummy func')
22+
root_dir, mod, image_list, md = _baseline_directory(
23+
lambda: 'dummy func', os.environ.get("MPLTESTIMAGEPATH", None)
24+
)
25+
result_dir = _results_directory(lambda: 'dummy func')
26+
baseline_dir = str(root_dir / mod)
2327

2428

2529
def compare_figure(fname, savefig_kwargs={}, tol=0):

0 commit comments

Comments
 (0)
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