Author vstinner
Recipients vstinner
Date 2019-10-23.15:03:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571843034.8.0.48225885493.issue38564@roundup.psfhosted.org>
In-reply-to
Content
I can reproduce the issue with this patch:

diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index dde84b84b1..c94113712a 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -3160,7 +3160,7 @@ class RunCoroutineThreadsafeTests(test_utils.TestCase):
 
     async def add(self, a, b, fail=False, cancel=False):
         """Wait 0.05 second and return a + b."""
-        await asyncio.sleep(0.05)
+        await asyncio.sleep(1e-9)
         if fail:
             raise RuntimeError("Fail!")
         if cancel:

and the command:

./python -m test test_asyncio -m test_run_coroutine_threadsafe_with_timeout -v -F
History
Date User Action Args
2019-10-23 15:03:54vstinnersetrecipients: + vstinner
2019-10-23 15:03:54vstinnersetmessageid: <1571843034.8.0.48225885493.issue38564@roundup.psfhosted.org>
2019-10-23 15:03:54vstinnerlinkissue38564 messages
2019-10-23 15:03:54vstinnercreate