File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1593,29 +1593,6 @@ def task():
15931593 self .assertEqual (os .read (r_interp , 1 ), FINI )
15941594 self .assertEqual (os .read (r_interp , 1 ), DONE )
15951595
1596- @cpython_only
1597- def test_daemon_threads_fatal_error (self ):
1598- # This used to crash, but Py_EndInterpreter() can now
1599- # handle remaining threads.
1600- import_module ("_testcapi" )
1601- subinterp_code = f"""if 1:
1602- import os
1603- import threading
1604- import time
1605-
1606- def f():
1607- # Make sure the daemon thread is still running when
1608- # Py_EndInterpreter is called.
1609- time.sleep({ test .support .SHORT_TIMEOUT } )
1610- threading.Thread(target=f, daemon=True).start()
1611- """
1612- script = r"""if 1:
1613- import _testcapi
1614-
1615- _testcapi.run_in_subinterp(%r)
1616- """ % (subinterp_code ,)
1617- assert_python_ok ("-c" , script )
1618-
16191596 def _check_allowed (self , before_start = '' , * ,
16201597 allowed = True ,
16211598 daemon_allowed = True ,
You can’t perform that action at this time.
0 commit comments