Skip to content

Commit f6a805e

Browse files
jkseppanmeeseeksmachine
authored andcommitted
Backport PR matplotlib#30271: Reduce pause time in interactive timer test
1 parent b1e9d78 commit f6a805e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,9 @@ def _impl_test_interactive_timers():
634634
# milliseconds, which the mac framework interprets as singleshot.
635635
# We only want singleshot if we specify that ourselves, otherwise we want
636636
# a repeating timer
637-
import os
638637
from unittest.mock import Mock
639638
import matplotlib.pyplot as plt
640-
# increase pause duration on CI to let things spin up
641-
# particularly relevant for gtk3cairo
642-
pause_time = 2 if os.getenv("CI") else 0.5
639+
pause_time = 0.5
643640
fig = plt.figure()
644641
plt.pause(pause_time)
645642
timer = fig.canvas.new_timer(0.1)

0 commit comments

Comments
 (0)