File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import os
99import sys
1010import tempfile
11+ import warnings
1112
1213import numpy as np
1314import pytest
2021 _determinism_check )
2122
2223
23- needs_usetex = pytest .mark .skipif (
24- not checkdep_usetex (True ),
25- reason = "This test needs a TeX installation" )
24+ with warnings .catch_warnings ():
25+ warnings .simplefilter ('ignore' )
26+ needs_usetex = pytest .mark .skipif (
27+ not checkdep_usetex (True ),
28+ reason = "This test needs a TeX installation" )
2629
2730
2831@image_comparison (baseline_images = ['pdf_use14corefonts' ],
Original file line number Diff line number Diff line change 44
55import io
66import re
7+ import warnings
78
89import numpy as np
910import pytest
1718 _determinism_check )
1819
1920
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" )
21+ with warnings .catch_warnings ():
22+ warnings .simplefilter ('ignore' )
23+ needs_ghostscript = pytest .mark .skipif (
24+ matplotlib .checkdep_ghostscript ()[0 ] is None ,
25+ reason = "This test needs a ghostscript installation" )
26+ needs_usetex = pytest .mark .skipif (
27+ not matplotlib .checkdep_usetex (True ),
28+ reason = "This test needs a TeX installation" )
2629
2730
2831# This tests tends to hit a TeX cache lock on AppVeyor.
Original file line number Diff line number Diff line change 66from io import BytesIO
77import os
88import tempfile
9+ import warnings
910import xml .parsers .expat
1011
1112import pytest
1617from matplotlib import dviread
1718
1819
19- needs_usetex = pytest .mark .skipif (
20- not matplotlib .checkdep_usetex (True ),
21- reason = "This test needs a TeX installation" )
20+ with warnings .catch_warnings ():
21+ warnings .simplefilter ('ignore' )
22+ needs_usetex = pytest .mark .skipif (
23+ not matplotlib .checkdep_usetex (True ),
24+ reason = "This test needs a TeX installation" )
2225
2326
2427def test_visibility ():
Original file line number Diff line number Diff line change 1414from matplotlib .testing .decorators import image_comparison
1515
1616
17- needs_usetex = pytest .mark .skipif (
18- not matplotlib .checkdep_usetex (True ),
19- reason = "This test needs a TeX installation" )
17+ with warnings .catch_warnings ():
18+ warnings .simplefilter ('ignore' )
19+ needs_usetex = pytest .mark .skipif (
20+ not matplotlib .checkdep_usetex (True ),
21+ reason = "This test needs a TeX installation" )
2022
2123
2224@image_comparison (baseline_images = ['font_styles' ])
Original file line number Diff line number Diff line change 11from __future__ import absolute_import , division , print_function
2+ import warnings
23
34import pytest
45
78import matplotlib .pyplot as plt
89
910
10- @pytest .mark .skipif (not matplotlib .checkdep_usetex (True ),
11- reason = 'Missing TeX or Ghostscript or dvipng' )
11+ with warnings .catch_warnings ():
12+ warnings .simplefilter ('ignore' )
13+ needs_usetex = pytest .mark .skipif (
14+ not matplotlib .checkdep_usetex (True ),
15+ reason = 'Missing TeX of Ghostscript or dvipng' )
16+
17+
18+ @needs_usetex
1219@image_comparison (baseline_images = ['test_usetex' ],
1320 extensions = ['pdf' , 'png' ],
1421 tol = 0.3 )
You can’t perform that action at this time.
0 commit comments