From e8e8a006d4aabcb54bd062c006d1cb4d67b28ae7 Mon Sep 17 00:00:00 2001 From: 0xedl <122504006+0xedl@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:39:24 -0400 Subject: [PATCH] Issue #26031 Decreased timeout to 20 for most, 120 is set if CI environment. --- lib/matplotlib/tests/test_backends_interactive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py index 325215a807ad..dc499b9fe318 100644 --- a/lib/matplotlib/tests/test_backends_interactive.py +++ b/lib/matplotlib/tests/test_backends_interactive.py @@ -76,7 +76,9 @@ def _get_testable_interactive_backends(): return envs -_test_timeout = 120 # A reasonably safe value for slower architectures. +_test_timeout = 20 # Default to a short timeout for most contributors +if os.getenv('CI'): # Check if running in a CI environment + _test_timeout = 120 # A reasonably safe value for slower architectures. def _test_toolbar_button_la_mode_icon(fig):