https://github.com/python/cpython/commit/6c96345e112075ddaad16a841cdfb6d951a5abec commit: 6c96345e112075ddaad16a841cdfb6d951a5abec branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-10-10T14:01:27+03:00 summary:
[3.15] gh-156701: Increase the SystemTap usability timeout (GH-156720) (GH-157986) 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. (cherry picked from commit e1be6132b20fc7a65edac8c671420fa61eabe46c) Co-authored-by: stratakis <[email protected]> files: M Lib/test/test_dtrace.py diff --git a/Lib/test/test_dtrace.py b/Lib/test/test_dtrace.py index 41b52662bd0d25..1700e522ec64e0 100644 --- a/Lib/test/test_dtrace.py +++ b/Lib/test/test_dtrace.py @@ -144,6 +144,7 @@ class TraceBackend: EXTENSION = None COMMAND = None COMMAND_ARGS = [] + USABILITY_TIMEOUT = 10 def run_case(self, name, optimize_python=None): try: @@ -195,7 +196,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( @@ -220,6 +221,7 @@ class SystemTapBackend(TraceBackend): EXTENSION = ".stp" COMMAND = ["stap", "-g"] PROBE_PLACEHOLDER = "@PYTHON_SYSTEMTAP_PROBE@" + USABILITY_TIMEOUT = 60 @staticmethod def quote_systemtap_string(value): _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
