Skip to content

Commit 5a73ce1

Browse files
committed
Remove buggy test.
1 parent 8febfbf commit 5a73ce1

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

Lib/test/test_threading.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)