$ ./python -m test test_asyncio --verbose
(...)
test_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_interrupt_call_soon) ... Exception in callback interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18
handle: <TimerHandle when=93104.58238161601 interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18>
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py", line 19, in interrupt_self
_thread.interrupt_main()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/runners.py", line 145, in _on_sigint
self._loop.call_soon_threadsafe(lambda: None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 809, in call_soon_threadsafe
self._write_to_self()
^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 511, in _write_to_self
raise NotImplementedError
^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError
ok
test_interrupt_cancelled_task (test.test_asyncio.test_runners.RunnerTests.test_interrupt_cancelled_task) ... Task exception was never retrieved
future: <Task finished name='Task-1657' coro=<RunnerTests.test_interrupt_cancelled_task.<locals>.subtask() done, defined at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:366> exception=NotImplementedError()>
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py", line 369, in subtask
interrupt_self()
^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py", line 19, in interrupt_self
_thread.interrupt_main()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/runners.py", line 145, in _on_sigint
self._loop.call_soon_threadsafe(lambda: None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 809, in call_soon_threadsafe
self._write_to_self()
^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 511, in _write_to_self
raise NotImplementedError
^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError
ok
test_interrupt_wait (test.test_asyncio.test_runners.RunnerTests.test_interrupt_wait) ... Exception in callback interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18
handle: <TimerHandle when=93104.694901935 interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18>
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py", line 19, in interrupt_self
_thread.interrupt_main()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/runners.py", line 145, in _on_sigint
self._loop.call_soon_threadsafe(lambda: None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 809, in call_soon_threadsafe
self._write_to_self()
^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 511, in _write_to_self
raise NotImplementedError
^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError
ok
(...)