GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [easy][asyncio] test_asyncio logs traceback with "NotImplementedError" · Issue #93850 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#93854
Closed
[easy][asyncio] test_asyncio logs traceback with "NotImplementedError"#93850
#93854
Copy link
Assignees
kumaraditya303
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Jun 15, 2022
Issue body actions

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: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
(...)

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-asyncio
    on Jun 15, 2022
  2. kumaraditya303
    self-assigned this
    on Jun 15, 2022
  3. vstinner
    closed this as completedin #93854on Jun 15, 2022
  4. vstinner
    added a commit that references this issue on Jun 15, 2022

    GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)

    b415c5f
  5. miss-islington
    added 2 commits that reference this issue on Jun 15, 2022

    pythonGH-93850: Fix test_asyncio exception ignored tracebacks (python…

    0f4a518

    GH-93850: Fix test_asyncio exception ignored tracebacks (GH-93854)

    d1fd739
  6. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kumaraditya303
    kumaraditya303

Labels

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.