From c440e9fc6c04366a43ba119e6465b51c8c872a6c Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Mon, 31 Aug 2026 16:59:12 +0200 Subject: [PATCH] gh-156701: Increase the SystemTap usability timeout SystemTap may compile a kernel module during its usability check (if no cached module is available). We need to allow a larger timeout for that case. --- Lib/test/test_dtrace.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_dtrace.py b/Lib/test/test_dtrace.py index 4967a18053057b3..91b66bd084b80b9 100644 --- a/Lib/test/test_dtrace.py +++ b/Lib/test/test_dtrace.py @@ -132,6 +132,7 @@ class TraceBackend: EXTENSION = None COMMAND = None COMMAND_ARGS = [] + USABILITY_TIMEOUT = 10 def run_case(self, name, optimize_python=None): try: @@ -183,7 +184,7 @@ def trace_python(self, script_file, python_file, optimize_python=None): def assert_usable(self): try: output = self.trace(abspath("assert_usable" + self.EXTENSION), - timeout=10) + timeout=self.USABILITY_TIMEOUT) output = output.strip() except subprocess.TimeoutExpired: raise unittest.SkipTest( @@ -208,6 +209,7 @@ class SystemTapBackend(TraceBackend): EXTENSION = ".stp" COMMAND = ["stap", "-g"] PROBE_PLACEHOLDER = "@PYTHON_SYSTEMTAP_PROBE@" + USABILITY_TIMEOUT = 60 @staticmethod def quote_systemtap_string(value):