Skip to content
New issue

Have 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

bpo-44282: fix occasional test_incremental_editing failures on buildbots #26491

Merged

Conversation

@taleinat
Copy link
Contributor

@taleinat taleinat commented Jun 2, 2021

Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jun 2, 2021

🤖 New build scheduled with the buildbot fleet by @taleinat for commit e49b2a5 🤖

If you want to schedule another build, you need to add the "🔨 test-with-buildbots" label again.

@@ -551,7 +551,7 @@ def test_long_multiline_string(self):
''')
self._assert_highlighting(source, {'STRING': [('1.0', '5.4')]})

@run_in_tk_mainloop
@run_in_tk_mainloop(delay=50)

This comment has been minimized.

@vstinner

vstinner Jun 2, 2021
Member

What is this magic number? A number of seconds?

I suggest you to use test.support.SHORT_TIMEOUT or test.support.LONG_TIMEOUT: https://docs.python.org/dev/library/test.html#test.support.SHORT_TIMEOUT

This comment has been minimized.

@taleinat

taleinat Jun 2, 2021
Author Contributor

What is this magic number? A number of seconds?

Milliseconds. It's explained in the decorator's doc-string.

I suggest you to use test.support.SHORT_TIMEOUT or test.support.LONG_TIMEOUT

I wasn't aware of these, good to know! I don't think they're quite what's needed here though.

This comment has been minimized.

@taleinat

taleinat Jun 2, 2021
Author Contributor

What is this magic number? A number of seconds?

Milliseconds. It's explained in the decorator's doc-string.

Would you prefer that this was a datetime.timedelta instance?

This comment has been minimized.

@vstinner

vstinner Jun 2, 2021
Member

No, it's fine.

Copy link
Member

@vstinner vstinner left a comment

LGTM. Well, I don't understand how Tkinter handles time, so let's see if 50 ms is enough for everyone :-p

Copy link
Member

@terryjreedy terryjreedy left a comment

Exactly what I meant as an alternative to skipping. While the latter would be okay for this test, we may have other tests where a much smaller delay, even 2 or 3 is sufficient.

@vstinner vstinner merged commit adef445 into python:main Jun 2, 2021
11 checks passed
11 checks passed
@github-actions
Check for source changes
Details
@github-actions
Check if generated files are up to date
Details
@github-actions
Windows (x86)
Details
@github-actions
Windows (x64)
Details
@github-actions
macOS
Details
@github-actions
Ubuntu
Details
@github-actions
Ubuntu SSL tests with OpenSSL
Details
Azure Pipelines PR #20210602.28 succeeded
Details
@travis-ci
Travis CI - Pull Request Build Passed
Details
@bedevere-bot
bedevere/issue-number Issue number 44282 found
Details
@bedevere-bot
bedevere/news "skip news" label found
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 2, 2021

Thanks @taleinat for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this pull request Jun 2, 2021
…ots (pythonGH-26491)

Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit adef445)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jun 2, 2021

GH-26499 is a backport of this pull request to the 3.10 branch.

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 2, 2021

I merge the issue right now since it broke buildbots and I'm trying to recover the green color of buildbots!

@terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Jun 3, 2021

A note to myself: Backport the revised tkinter helper file to 3.9 so we can use it with future tests that get backported to 3.9.

vstinner pushed a commit that referenced this pull request Jun 3, 2021
…ots (GH-26491) (GH-26499)

Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
(cherry picked from commit adef445)

Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
@taleinat
Copy link
Contributor Author

@taleinat taleinat commented Jun 3, 2021

A note to myself: Backport the revised tkinter helper file to 3.9 so we can use it with future tests that get backported to 3.9.

Note that the helper is currently missing on the 3.9 branch, as it was added as part of the PR which added the shell sidebar, which we haven't backported to 3.9. We'd likely want to backport that PR to 3.9 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants