Skip to content

Commit db6fb4d

Browse files
committed
Skip test_interactive_backend on macOS Travis.
We will follow up on this later, #18213.
1 parent 2ba9f29 commit db6fb4d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/matplotlib/tests/test_backends_interactive.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,13 @@ def check_alt_backend(alt_backend):
154154
@pytest.mark.parametrize("toolbar", ["toolbar2", "toolmanager"])
155155
@pytest.mark.flaky(reruns=3)
156156
def test_interactive_backend(backend, toolbar):
157-
if backend == "macosx" and toolbar == "toolmanager":
158-
pytest.skip("toolmanager is not implemented for macosx.")
157+
if backend == "macosx":
158+
if toolbar == "toolmanager":
159+
pytest.skip("toolmanager is not implemented for macosx.")
160+
if toolbar == "toolbar2" and os.environ.get('TRAVIS'):
161+
# See https://github.com/matplotlib/matplotlib/issues/18213
162+
pytest.skip("toolbar2 for macosx is buggy on Travis.")
163+
159164
proc = subprocess.run(
160165
[sys.executable, "-c", _test_script,
161166
json.dumps({"toolbar": toolbar})],

0 commit comments

Comments
 (0)