Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc38128

Browse files
committed
CI: Skip gtk3cairo and wx interactive timer test
1 parent 7103c37 commit dc38128

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def _impl_test_interactive_timers():
636636
import matplotlib.pyplot as plt
637637
# increase pause duration on CI to let things spin up
638638
# particularly relevant for gtk3cairo
639-
pause_time = 5 if os.getenv("CI") else 0.5
639+
pause_time = 2 if os.getenv("CI") else 0.5
640640
fig = plt.figure()
641641
plt.pause(pause_time)
642642
timer = fig.canvas.new_timer(0.1)
@@ -663,5 +663,9 @@ def _impl_test_interactive_timers():
663663

664664
@pytest.mark.parametrize("env", _get_testable_interactive_backends())
665665
def test_interactive_timers(env):
666+
if env["MPLBACKEND"] == "gtk3cairo" and os.getenv("CI"):
667+
pytest.skip("gtk3cairo timers do not work in remote CI")
668+
if env["MPLBACKEND"] == "wx":
669+
pytest.skip("wx backend is deprecated; tests failed on appveyor")
666670
_run_helper(_impl_test_interactive_timers,
667671
timeout=_test_timeout, extra_env=env)

0 commit comments

Comments
 (0)