mirror of
https://github.com/python/cpython.git
synced 2025-10-25 18:54:53 +00:00
[3.14] gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support (GH-134606) (GH-139050)
gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support (GH-134606)
This reapplies GH-128640.
(cherry picked from commit a64881363b)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
08bea299bf
commit
cec4ddf23e
6 changed files with 114 additions and 39 deletions
|
|
@ -1718,10 +1718,7 @@ def f():
|
|||
|
||||
_testcapi.run_in_subinterp(%r)
|
||||
""" % (subinterp_code,)
|
||||
with test.support.SuppressCrashReport():
|
||||
rc, out, err = assert_python_failure("-c", script)
|
||||
self.assertIn("Fatal Python error: Py_EndInterpreter: "
|
||||
"not the last thread", err.decode())
|
||||
assert_python_ok("-c", script)
|
||||
|
||||
def _check_allowed(self, before_start='', *,
|
||||
allowed=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue