No need for sleep.

This commit is contained in:
Itamar Turner-Trauring 2023-02-21 09:38:54 -05:00
parent c9d140b05d
commit 154f1ce143

View File

@ -601,7 +601,6 @@ class CPUThreadPool(unittest.TestCase):
async def test_runs_in_thread(self):
"""The given function runs in a thread."""
def f(*args, **kwargs):
time.sleep(0.1)
return current_thread(), args, kwargs
this_thread = current_thread().ident