File tree 5 files changed +35
-17
lines changed
5 files changed +35
-17
lines changed Original file line number Diff line number Diff line change 8
8
import os
9
9
import sys
10
10
import tempfile
11
+ import warnings
11
12
12
13
import numpy as np
13
14
import pytest
20
21
_determinism_check )
21
22
22
23
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" )
26
29
27
30
28
31
@image_comparison (baseline_images = ['pdf_use14corefonts' ],
Original file line number Diff line number Diff line change 4
4
5
5
import io
6
6
import re
7
+ import warnings
7
8
8
9
import numpy as np
9
10
import pytest
17
18
_determinism_check )
18
19
19
20
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" )
26
29
27
30
28
31
# This tests tends to hit a TeX cache lock on AppVeyor.
Original file line number Diff line number Diff line change 6
6
from io import BytesIO
7
7
import os
8
8
import tempfile
9
+ import warnings
9
10
import xml .parsers .expat
10
11
11
12
import pytest
16
17
from matplotlib import dviread
17
18
18
19
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" )
22
25
23
26
24
27
def test_visibility ():
Original file line number Diff line number Diff line change 14
14
from matplotlib .testing .decorators import image_comparison
15
15
16
16
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" )
20
22
21
23
22
24
@image_comparison (baseline_images = ['font_styles' ])
Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import , division , print_function
2
+ import warnings
2
3
3
4
import pytest
4
5
7
8
import matplotlib .pyplot as plt
8
9
9
10
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
12
19
@image_comparison (baseline_images = ['test_usetex' ],
13
20
extensions = ['pdf' , 'png' ],
14
21
tol = 0.3 )
You can’t perform that action at this time.
0 commit comments