GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — gh-121008: Fix idlelib.run tests by vstinner · Pull Request #121046 · python/cpython Conversation
|
|
Without this change, With this change, the same command no longer hangs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixes the issue for me on Ubuntu and macOS, both GUI builds. Tests pass with:
> /Volumes/RAMDisk/installed-main/bin/python3 -E -Wd -m test --slowest --fail-env-changed -uall test_idle test_pyrepl
Using random seed: 2738848300
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 9.16 Run 2 tests sequentially in a single process
0:00:00 load avg: 9.16 [1/2] test_idle
0:00:09 load avg: 9.14 [2/2] test_pyrepl
== Tests result: SUCCESS ==
10 slowest tests:
- test_idle: 9.3 sec
- test_pyrepl: 4.5 sec
All 2 tests OK.
Total duration: 13.9 sec
Total tests: run=740 skipped=5
Total test files: run=2/2
Result: SUCCESS
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
When testing IDLE, don't create a Tk to avoid side effects such as installing a PyOS_InputHook hook. (cherry picked from commit 44eafd6) Co-authored-by: Victor Stinner <[email protected]>
|
GH-121049 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok, let me merge this change and see how it goes. Thanks for the review @ambv. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
gh-121008: Fix idlelib.run tests (GH-121046) When testing IDLE, don't create a Tk to avoid side effects such as installing a PyOS_InputHook hook. (cherry picked from commit 44eafd6) Co-authored-by: Victor Stinner <[email protected]>
When testing IDLE, don't create a Tk to avoid side effects such as installing a PyOS_InputHook hook.
When testing IDLE, don't create a Tk to avoid side effects such as installing a PyOS_InputHook hook.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.