File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import os
33import sys
44import tempfile
5+ import warnings
56
67import numpy as np
78import pytest
1415 _determinism_check )
1516
1617
17- needs_usetex = pytest .mark .skipif (
18- not checkdep_usetex (True ),
19- reason = "This test needs a TeX installation" )
18+ with warnings .catch_warnings ():
19+ warnings .simplefilter ('ignore' )
20+ needs_usetex = pytest .mark .skipif (
21+ not checkdep_usetex (True ),
22+ reason = "This test needs a TeX installation" )
2023
2124
2225@image_comparison (baseline_images = ['pdf_use14corefonts' ],
Original file line number Diff line number Diff line change 33from pathlib import Path
44import re
55import tempfile
6+ import warnings
67
78import pytest
89
1415 _determinism_check )
1516
1617
17- needs_ghostscript = pytest .mark .skipif (
18- matplotlib .checkdep_ghostscript ()[0 ] is None ,
19- reason = "This test needs a ghostscript installation" )
20- needs_usetex = pytest .mark .skipif (
21- not matplotlib .checkdep_usetex (True ),
22- reason = "This test needs a TeX installation" )
18+ with warnings .catch_warnings ():
19+ warnings .simplefilter ('ignore' )
20+ needs_ghostscript = pytest .mark .skipif (
21+ matplotlib .checkdep_ghostscript ()[0 ] is None ,
22+ reason = "This test needs a ghostscript installation" )
23+ needs_usetex = pytest .mark .skipif (
24+ not matplotlib .checkdep_usetex (True ),
25+ reason = "This test needs a TeX installation" )
2326
2427
2528# This tests tends to hit a TeX cache lock on AppVeyor.
Original file line number Diff line number Diff line change 22from io import BytesIO
33import os
44import tempfile
5+ import warnings
56import xml .parsers .expat
67
78import pytest
1213from matplotlib import dviread
1314
1415
15- needs_usetex = pytest .mark .skipif (
16- not matplotlib .checkdep_usetex (True ),
17- reason = "This test needs a TeX installation" )
16+ with warnings .catch_warnings ():
17+ warnings .simplefilter ('ignore' )
18+ needs_usetex = pytest .mark .skipif (
19+ not matplotlib .checkdep_usetex (True ),
20+ reason = "This test needs a TeX installation" )
1821
1922
2023def test_visibility ():
Original file line number Diff line number Diff line change 1111from matplotlib .testing .decorators import image_comparison
1212
1313
14- needs_usetex = pytest .mark .skipif (
15- not matplotlib .checkdep_usetex (True ),
16- reason = "This test needs a TeX installation" )
14+ with warnings .catch_warnings ():
15+ warnings .simplefilter ('ignore' )
16+ needs_usetex = pytest .mark .skipif (
17+ not matplotlib .checkdep_usetex (True ),
18+ reason = "This test needs a TeX installation" )
1719
1820
1921@image_comparison (baseline_images = ['font_styles' ])
Original file line number Diff line number Diff line change 1+ import warnings
2+
13import pytest
24
35import matplotlib
46from matplotlib .testing .decorators import image_comparison
57import matplotlib .pyplot as plt
68
79
8- @pytest .mark .skipif (not matplotlib .checkdep_usetex (True ),
9- reason = 'Missing TeX or Ghostscript or dvipng' )
10+ with warnings .catch_warnings ():
11+ warnings .simplefilter ('ignore' )
12+ needs_usetex = pytest .mark .skipif (
13+ not matplotlib .checkdep_usetex (True ),
14+ reason = 'Missing TeX of Ghostscript or dvipng' )
15+
16+
17+ @needs_usetex
1018@image_comparison (baseline_images = ['test_usetex' ],
1119 extensions = ['pdf' , 'png' ],
1220 tol = 0.3 )
You can’t perform that action at this time.
0 commit comments