Skip to content

Commit 030de2f

Browse files
committed
Disable faulthandler in test runner.
1 parent c519f0e commit 030de2f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

patch/Python/Python.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6070,6 +6070,20 @@ index f474a756b33..21e792a8642 100644
60706070
def test_system_transitions(self):
60716071
if ('Riyadh8' in self.zonename or
60726072
# From tzdata NEWS file:
6073+
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
6074+
index 400a3db5de4..049afff1a75 100644
6075+
--- a/Lib/test/libregrtest/main.py
6076+
+++ b/Lib/test/libregrtest/main.py
6077+
@@ -676,7 +676,8 @@
6078+
except SystemExit as exc:
6079+
# bpo-38203: Python can hang at exit in Py_Finalize(), especially
6080+
# on threading._shutdown() call: put a timeout
6081+
- faulthandler.dump_traceback_later(EXIT_TIMEOUT, exit=True)
6082+
+ if self.ns.timeout is not None:
6083+
+ faulthandler.dump_traceback_later(EXIT_TIMEOUT, exit=True)
6084+
6085+
sys.exit(exc.code)
6086+
60736087
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
60746088
index eef34f08121..22115948788 100644
60756089
--- a/Lib/test/pythoninfo.py

0 commit comments

Comments
 (0)