bpo-35771: IDLE: Fix and optimize flaky tool-tip hover delay tests#15634
Conversation
This is done to avoid waiting for a delay to expire multiple times.
|
@ZackerySpytz, your review would be welcome. @terryjreedy, this is not the approach you recommended in your comment on GH-14926. IMO, in this case, it is better to actually test with Tk rather than with a mock. |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
An average speedup of .004 seconds and greatly decreased chance of spurious failure is a win. I will merge with my revisions when CI passes.
Sorry, something went wrong.
|
Thanks @taleinat for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Sorry, something went wrong.
|
Sorry @taleinat and @terryjreedy, I had trouble checking out the |
Sorry, something went wrong.
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup. (cherry picked from commit 132acab) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
Thanks @taleinat for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup. (cherry picked from commit 132acab) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup. (cherry picked from commit 132acab) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup. (cherry picked from commit 132acab) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
A 50ms delay will often causes failures on slower machines.
This PR is an alternative to PR GH-14926. In this PR, both of the tests with a delay have been merged into one, to avoid multiple
time.sleep()calls, reducing the overall run time.For reference, the total run time for
test_idleon my machine is about 7.5 seconds. 0.15 seconds, which is the delay time added by these tests, is 2% of that.https://bugs.python.org/issue35771