Skip to content

Commit 5398219

Browse files
committed
Revert test
1 parent 42f3885 commit 5398219

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Lib/test/test_asyncio/test_tasks.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3680,18 +3680,6 @@ def task_factory(loop, coro):
36803680
(loop, context), kwargs = callback.call_args
36813681
self.assertEqual(context['exception'], exc_context.exception)
36823682

3683-
def test_run_coroutine_threadsafe_and_cancel(self):
3684-
async def target():
3685-
# self.loop.run_in_executor(None, _in_another_thread)
3686-
thread_future = asyncio.run_coroutine_threadsafe(self.add(1, 2), self.loop)
3687-
await asyncio.sleep(0)
3688-
3689-
thread_future.cancel()
3690-
await asyncio.sleep(0)
3691-
3692-
self.loop.run_until_complete(target())
3693-
self.assertEqual(0, len(self.loop._ready))
3694-
36953683

36963684
class SleepTests(test_utils.TestCase):
36973685
def setUp(self):

0 commit comments

Comments
 (0)