← 返回首页
Add Tkinter tests for different events. by serhiy-storchaka · Pull Request #118778 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Add Tkinter tests for different events.#118778

Merged
serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:test-tkinter-events
May 16, 2024
Merged

Add Tkinter tests for different events.#118778
serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:test-tkinter-events

Conversation

Copy link
Copy Markdown
Member

No description provided.

serhiy-storchaka marked this pull request as ready for review May 15, 2024 20:09

Copy link
Copy Markdown
Member Author

These tests were intended to supplement #98592 and help to catch bugs similar to #118760, but this does not help. They are passed even if the bug is still here, the reproducibility of the bug depends not on the event itself, but on actions that were done before this. Anyway, there are now tests for creating the Event objects of different types, with different sets of attributes. This is a place and a template for adding more tests if this is needed (for example for #47655).

serhiy-storchaka merged commit b683994 into python:main May 16, 2024

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 16, 2024
(cherry picked from commit b683994) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker b6839942a8906fccdd64e749abeefe8a61ce7e03 3.12

bedevere-app Bot commented May 16, 2024

Copy link
Copy Markdown

GH-119091 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 16, 2024
serhiy-storchaka added a commit that referenced this pull request May 16, 2024
(cherry picked from commit b683994) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request May 16, 2024
(cherry picked from commit b683994) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

bedevere-app Bot commented May 16, 2024

Copy link
Copy Markdown

GH-119095 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label May 16, 2024
serhiy-storchaka added a commit that referenced this pull request May 16, 2024

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x Fedora LTO + PGO 3.x has failed when building commit b683994.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/545/builds/5922) and take a look at the build logs.
  4. Check if the failure is related to this commit (b683994) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/545/builds/5922

Failed tests:

  • test_free_threading

Summary of the results of the build (if available):

==

Click to see traceback logs
Note: switching to 'b6839942a8906fccdd64e749abeefe8a61ce7e03'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at b6839942a8 Add Tkinter tests for different events (GH-118778) Switched to and reset branch 'main' configure: WARNING: no system libmpdecimal found; unable to build _decimal find: ‘build’: No such file or directory find: ‘build’: No such file or directory find: ‘build’: No such file or directory find: ‘build’: No such file or directory make[2]: [Makefile:3113: clean-retain-profile] Error 1 (ignored) /home/dje/cpython-buildarea/3.x.edelsohn-fedora-z.lto-pgo/build/Lib/test/test_decimal.py:5919: UserWarning: C tests skipped: no module named _decimal. warnings.warn('C tests skipped: no module named _decimal.', In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘doParseXmlDecl’ at ./Modules/expat/xmltok.c:1192:13: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘doParseXmlDecl’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1070:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1076:12: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1076:12: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1083:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1083:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1110:7: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1123:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1123:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^~~ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘doParseXmlDecl’ at ./Modules/expat/xmltok.c:1192:13: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘doParseXmlDecl’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1070:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1076:12: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1076:12: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1083:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1083:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1110:7: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1123:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ In function ‘utf8_toUtf8’, inlined from ‘toAscii’ at ./Modules/expat/xmltok.c:1038:3, inlined from ‘parsePseudoAttribute’ at ./Modules/expat/xmltok.c:1123:9: ./Modules/expat/xmltok.c:392:5: warning: ‘memcpy’ writing 2 or more bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] 392 | memcpy(*toP, *fromP, bytesToCopy); | ^ ./Modules/expat/xmltok.c: In function ‘parsePseudoAttribute’: ./Modules/expat/xmltok.c:1036:8: note: destination object ‘buf’ of size 1 1036 | char buf[1]; | ^ make: *** [Makefile:2240: buildbottest] Error 2

estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
serhiy-storchaka deleted the test-tkinter-events branch January 19, 2026 17:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.