Skip to content

bpo-45979: Fix Tkinter tests with old Tk #29913

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

Closed
wants to merge 2 commits into from

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 4, 2021

All Tkinter tests are now passed on Linux with Tk versions
8.5.4 to 8.5.19 and 8.6.0 to 8.6.12.

https://bugs.python.org/issue45979

All Tkinter tests are now passed on Linux with Tk versions
8.5.4 to 8.5.19 and 8.6.0 to 8.6.12.
w.wm_attributes("-type", "dialog")
try:
w.wm_attributes("-type", "dialog")
except TclError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than catching an error, would we be better checking for supported Tk version like you've done elsewhere? (if get_tk_patchlevel() >= (8, 5, 9):)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no get_tk_patchlevel() in the tkinter module. It is only defined in tests.

@serhiy-storchaka serhiy-storchaka added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 12, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 283f1eb 🤖

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

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 12, 2022
@serhiy-storchaka serhiy-storchaka deleted the test_tk branch March 16, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants