-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 #23955
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-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 #23955
Conversation
…dynamic linked with Tk >= 8.5
87da1ea
to
f334d42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I don't know if it fix the issue, but the additional test looks useful.
# bignum was added in Tcl 8.5, but its support is able only since 8.5.8. | ||
# Actually it is determined at compile time, so using get_tk_patchlevel() | ||
# is not reliable. | ||
# TODO: expose full static version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that this TODO is useful. Is there a need for the full static version for this specific test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test will still fail if build Tkinter with 8.5 older than 8.5.8 or with alpha or beta of 8.6. Very unlikely.
I am planning to add named tuples (like sys.version_info
) for static and dynamic versions. It is a part of large project which adds structured version for all external libraries.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
…dynamic linked with Tk >= 8.5 (pythonGH-23955) (cherry picked from commit b02ad24) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-23961 is a backport of this pull request to the 3.9 branch. |
…dynamic linked with Tk >= 8.5 (pythonGH-23955) (cherry picked from commit b02ad24) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-23962 is a backport of this pull request to the 3.8 branch. |
…dynamic linked with Tk >= 8.5 (pythonGH-23955)
https://bugs.python.org/issue42749