8000 test.test_asyncio.test_runners fails in "development mode" · Issue #107895 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

test.test_asyncio.test_runners fails in "development mode" #107895

New issue

H 8000 ave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
serhiy-storchaka opened this issue Aug 12, 2023 · 1 comment · Fixed by #108168 or #108196
Closed

test.test_asyncio.test_runners fails in "development mode" #107895

serhiy-storchaka opened this issue Aug 12, 2023 · 1 comment · Fixed by #108168 or #108196
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member
serhiy-storchaka commented Aug 12, 2023
$ ./python -Xdev -m test test.test_asyncio.test_runners -m test_asyncio_run_debug
0:00:00 load avg: 2.08 Run tests sequentially
0:00:00 load avg: 2.08 [1/1] test.test_asyncio.test_runners
test test.test_asyncio.test_runners failed -- Traceback (most recent call last):
  File ".../Lib/test/test_asyncio/test_runners.py", line 104, in test_asyncio_run_debug
    asyncio.run(main(False))
  File ".../Lib/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File ".../Lib/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../Lib/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File ".../Lib/test/test_asyncio/test_runners.py", line 102, in main
    self.assertIs(loop.get_debug(), expected)
AssertionError: True is not False

test.test_asyncio.test_runners failed (1 failure)
...

Linked PRs

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir topic-asyncio labels Aug 12, 2023
@github-project-automation github-project-automation bot moved this to Todo in asyncio Aug 12, 2023
@serhiy-storchaka serhiy-storchaka added 3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes labels Aug 12, 2023
@xncbf
Copy link
Contributor
xncbf commented Aug 20, 2023

I just posted a patch

@github-project-automation github-project-automation bot moved this from Todo to Done in asyncio Aug 21, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 21, 2023
…'s "development mode" (pythonGH-108168)

(cherry picked from commit 014a5b7)

Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 21, 2023
…'s "development mode" (pythonGH-108168)

(cherry picked from commit 014a5b7)

Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
serhiy-storchaka pushed a commit that referenced this issue Aug 21, 2023
…n's "development mode" (GH-108168) (GH-108197)

(cherry picked from commit 014a5b7)

Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
Yhg1s pushed a commit that referenced this issue Aug 21, 2023
…n's "development mode" (GH-108168) (#108196)

gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168)
(cherry picked from commit 014a5b7)

Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Done
2 participants
0