File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
15
15
# Minimal smoke-testing of the backends for which the dependencies are
16
- # PyPI-installable on Travis . They are not available for all tested Python
16
+ # PyPI-installable on CI . They are not available for all tested Python
17
17
# versions so we don't fail on missing backends.
18
18
19
19
def _get_testable_interactive_backends ():
@@ -28,13 +28,16 @@ def _get_testable_interactive_backends():
28
28
(["tkinter" ], "tkagg" ),
29
29
(["wx" ], "wx" ),
30
30
(["wx" ], "wxagg" ),
31
+ (["matplotlib.backends._macosx" ], "macosx" ),
31
32
]:
32
33
reason = None
33
34
missing = [dep for dep in deps if not importlib .util .find_spec (dep )]
34
- if not os .environ .get ("DISPLAY" ):
35
+ if sys . platform == "linux" and not os .environ .get ("DISPLAY" ):
35
36
reason = "$DISPLAY is unset"
36
37
elif missing :
37
38
reason = "{} cannot be imported" .format (", " .join (missing ))
39
+ elif backend == 'macosx' and os .environ .get ('TF_BUILD' ):
40
+ reason = "macosx backend fails on Azure"
38
41
if reason :
39
42
backend = pytest .param (
40
43
backend ,
@@ -128,7 +131,7 @@ def test_interactive_backend(backend):
128
131
f"{ proc .returncode } ." )
129
132
130
133
131
- @pytest .mark .skipif ('SYSTEM_TEAMFOUNDATIONCOLLECTIONURI ' in os .environ ,
134
+ @pytest .mark .skipif ('TF_BUILD ' in os .environ ,
132
135
reason = "this test fails an azure for unknown reasons" )
133
136
@pytest .mark .skipif (os .name == "nt" , reason = "Cannot send SIGINT on Windows." )
134
137
def test_webagg ():
You can’t perform that action at this time.
0 commit comments