Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[easy][asyncio] test_asyncio logs traceback with "NotImplementedError" #93850

Closed
Assignees
kumaraditya303
Labels
testsTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or error
@vstinner

Description

@vstinner

Running test_asyncio logs traceback with "NotImplementedError":

$ ./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:18handle: <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    ^^^^^^^^^^^^^^^^^^^^^^^^^NotImplementedErroroktest_interrupt_cancelled_task (test.test_asyncio.test_runners.RunnerTests.test_interrupt_cancelled_task) ... Task exception was never retrievedfuture: <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    ^^^^^^^^^^^^^^^^^^^^^^^^^NotImplementedErroroktest_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:18handle: <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    ^^^^^^^^^^^^^^^^^^^^^^^^^NotImplementedErrorok(...)

Metadata

Metadata

Labels

testsTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp