René's URL Explorer Experiment


Title: Improve test coverage of tkinter · Issue #151678 · python/cpython · GitHub

Open Graph Title: Improve test coverage of tkinter · Issue #151678 · python/cpython

X Title: Improve test coverage of tkinter · Issue #151678 · python/cpython

Description: Feature or enhancement Large parts of the :mod:tkinter public API have little or no direct test coverage. Widget configuration options are tested fairly thoroughly via the AbstractWidgetTest framework in Lib/test/test_tkinter/test_widget...

Open Graph Description: Feature or enhancement Large parts of the :mod:tkinter public API have little or no direct test coverage. Widget configuration options are tested fairly thoroughly via the AbstractWidgetTest framew...

X Description: Feature or enhancement Large parts of the :mod:tkinter public API have little or no direct test coverage. Widget configuration options are tested fairly thoroughly via the AbstractWidgetTest framew...

Opengraph URL: https://github.com/python/cpython/issues/151678

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve test coverage of tkinter","articleBody":"### Feature or enhancement\n\nLarge parts of the :mod:`tkinter` public API have little or no direct test coverage.  Widget *configuration options* are tested fairly thoroughly via the ``AbstractWidgetTest`` framework in ``Lib/test/test_tkinter/test_widgets.py``, but many *widget methods* and the per-element configuration surfaces (tags, embedded images and windows, marks, etc.) are not exercised at all.\n\nFor example, before this issue ``test_text.py`` tested only a handful of ``Text`` methods (``debug``, ``search``, ``search_all``, ``count``), leaving indices, content manipulation, marks, tags, undo/redo, dump, embedded images and windows, peers, geometry and the tag/image/window configuration options untested.\n\nThe goal is to incrementally add tests for the untested tkinter API, widget by widget and method by method:\n\n* `Text` — methods and tag/image/window option configuration (in progress).\n* `Canvas` — items, tags, coords, scanning, postscript, and item options.\n* `Listbox`, `Entry`, `Spinbox`, `Menu` — selection, indices, item options.\n* `Misc`/`Wm` — window manager, clipboard, selection, grab, event and ``winfo`` methods.\n* Geometry managers (``pack``/``place``/``grid``) query methods.\n* `ttk` widgets, ``Style``, ``Treeview``.\n\nThis complements the related audit of Tk commands that are only partially wrapped by tkinter.\n\n### Links to previous discussion\n\nRelated to the recent tkinter documentation overhaul (gh-86726).\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-151681\n* gh-151683\n* gh-151685\n* gh-151686\n* gh-151687\n* gh-151702\n* gh-151705\n* gh-151709\n* gh-151710\n* gh-151711\n* gh-151712\n* gh-151713\n* gh-151714\n* gh-151715\n* gh-151716\n* gh-151717\n* gh-151718\n* gh-151725\n* gh-151726\n* gh-151727\n* gh-151732\n* gh-151736\n* gh-151737\n* gh-151738\n* gh-151739\n* gh-151741\n* gh-151742\n* gh-151743\n* gh-151751\n* gh-151753\n* gh-151754\n* gh-151755\n* gh-151756\n* gh-151759\n* gh-151760\n* gh-151761\n* gh-151780\n* gh-151781\n* gh-151782\n* gh-151790\n* gh-151791\n* gh-151792\n* gh-151793\n* gh-151794\n* gh-151795\n* gh-151796\n* gh-151797\n* gh-151799\n* gh-151800\n* gh-151801\n* gh-151802\n* gh-151803\n* gh-151804\n* gh-151805\n* gh-151806\n* gh-151807\n* gh-151856\n* gh-151859\n* gh-151860\n* gh-151869\n* gh-151960\n* gh-151963\n* gh-151964\n* gh-151965\n* gh-152362\n* gh-152367\n* gh-152368\n* gh-152369\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-06-18T22:08:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/151678/cpython/issues/151678"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:43db427c-e15c-88e6-b135-81a1511f3056
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC9BC:1C3DD7:192D8EB:2198C12:6A52C2FE
html-safe-nonce01a2b5c21b74b16e44520fafdb857293a67966168832106dd00801b85fdb1775
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUJDOjFDM0RENzoxOTJEOEVCOjIxOThDMTI6NkE1MkMyRkUiLCJ2aXNpdG9yX2lkIjoiNTAwNDA4MTMzNjI0OTY2NDI1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac251387d9a37b74b80977eabd9fa15ae344561be2d46320b43abbf5b15e162d95
hovercard-subject-tagissue:4696292690
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/151678/issue_layout
twitter:imagehttps://opengraph.githubassets.com/861af572725900757f378be847bcb39641e16c304aad97175b0fc8543a88869f/python/cpython/issues/151678
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/861af572725900757f378be847bcb39641e16c304aad97175b0fc8543a88869f/python/cpython/issues/151678
og:image:altFeature or enhancement Large parts of the :mod:tkinter public API have little or no direct test coverage. Widget configuration options are tested fairly thoroughly via the AbstractWidgetTest framew...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/151678#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F151678
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F151678
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/151678
Reloadhttps://github.com/python/cpython/issues/151678
Reloadhttps://github.com/python/cpython/issues/151678
Please reload this pagehttps://github.com/python/cpython/issues/151678
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/151678
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Improve test coverage of tkinterhttps://github.com/python/cpython/issues/151678#top
https://github.com/serhiy-storchaka
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15pre-release feature fixes, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-tkinterhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-tkinter%22
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 18, 2026https://github.com/python/cpython/issues/151678#issue-4696292690
gh-86726https://github.com/python/cpython/issues/86726
gh-151678: Add tests for tkinter.Text #151681https://github.com/python/cpython/pull/151681
gh-151678: Add tests for tkinter.Canvas #151683https://github.com/python/cpython/pull/151683
gh-151678: Add tests for tkinter.Menu #151685https://github.com/python/cpython/pull/151685
gh-151678: Add tests for tkinter.Listbox #151686https://github.com/python/cpython/pull/151686
gh-151678: Add tests for the remaining tkinter widgets #151687https://github.com/python/cpython/pull/151687
[3.15] gh-151678: Add tests for tkinter.Text (GH-151681) #151702https://github.com/python/cpython/pull/151702
[3.14] gh-151678: Add tests for tkinter.Text (GH-151681) #151705https://github.com/python/cpython/pull/151705
[3.15] gh-151678: Add tests for tkinter.Menu (GH-151685) #151709https://github.com/python/cpython/pull/151709
[3.14] gh-151678: Add tests for tkinter.Menu (GH-151685) #151710https://github.com/python/cpython/pull/151710
[3.13] gh-151678: Add tests for tkinter.Menu (GH-151685) #151711https://github.com/python/cpython/pull/151711
[3.15] gh-151678: Add tests for tkinter.Listbox (GH-151686) #151712https://github.com/python/cpython/pull/151712
[3.14] gh-151678: Add tests for tkinter.Listbox (GH-151686) #151713https://github.com/python/cpython/pull/151713
[3.13] gh-151678: Add tests for tkinter.Listbox (GH-151686) #151714https://github.com/python/cpython/pull/151714
[3.13] gh-151678: Add tests for tkinter.Text (GH-151681) (GH-151705) #151715https://github.com/python/cpython/pull/151715
[3.15] gh-151678: Add tests for tkinter.Canvas (GH-151683) #151716https://github.com/python/cpython/pull/151716
[3.14] gh-151678: Add tests for tkinter.Canvas (GH-151683) #151717https://github.com/python/cpython/pull/151717
[3.13] gh-151678: Add tests for tkinter.Canvas (GH-151683) #151718https://github.com/python/cpython/pull/151718
[3.15] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) #151725https://github.com/python/cpython/pull/151725
[3.14] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) #151726https://github.com/python/cpython/pull/151726
[3.13] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) #151727https://github.com/python/cpython/pull/151727
gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods #151732https://github.com/python/cpython/pull/151732
gh-151678: Add tests for tkinter.ttk methods #151736https://github.com/python/cpython/pull/151736
[3.15] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH-151732) #151737https://github.com/python/cpython/pull/151737
[3.14] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH-151732) #151738https://github.com/python/cpython/pull/151738
[3.13] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH-151732) #151739https://github.com/python/cpython/pull/151739
[3.15] gh-151678: Add tests for tkinter.ttk methods (GH-151736) #151741https://github.com/python/cpython/pull/151741
[3.14] gh-151678: Add tests for tkinter.ttk methods (GH-151736) #151742https://github.com/python/cpython/pull/151742
[3.13] gh-151678: Add tests for tkinter.ttk methods (GH-151736) #151743https://github.com/python/cpython/pull/151743
gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods #151751https://github.com/python/cpython/pull/151751
gh-151678: Add tests for tkinter.scrolledtext #151753https://github.com/python/cpython/pull/151753
[3.15] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) #151754https://github.com/python/cpython/pull/151754
[3.14] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) #151755https://github.com/python/cpython/pull/151755
[3.13] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) #151756https://github.com/python/cpython/pull/151756
[3.15] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) #151759https://github.com/python/cpython/pull/151759
[3.14] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) #151760https://github.com/python/cpython/pull/151760
[3.13] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) #151761https://github.com/python/cpython/pull/151761
gh-151678: Add tests for tkinter.dnd #151780https://github.com/python/cpython/pull/151780
gh-151678: Add tests for tkinter.filedialog #151781https://github.com/python/cpython/pull/151781
gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods #151782https://github.com/python/cpython/pull/151782
[3.15] gh-151678: Add tests for tkinter.dnd (GH-151780) #151790https://github.com/python/cpython/pull/151790
[3.14] gh-151678: Add tests for tkinter.dnd (GH-151780) #151791https://github.com/python/cpython/pull/151791
[3.13] gh-151678: Add tests for tkinter.dnd (GH-151780) #151792https://github.com/python/cpython/pull/151792
gh-151678: Add tests for tkinter widget virtual events #151793https://github.com/python/cpython/pull/151793
gh-151678: Add interactive tests for tkinter.simpledialog #151794https://github.com/python/cpython/pull/151794
[3.15] gh-151678: Add tests for tkinter.filedialog (GH-151781) #151795https://github.com/python/cpython/pull/151795
[3.14] gh-151678: Add tests for tkinter.filedialog (GH-151781) #151796https://github.com/python/cpython/pull/151796
[3.13] gh-151678: Add tests for tkinter.filedialog (GH-151781) #151797https://github.com/python/cpython/pull/151797
[3.15] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods (GH-151782) #151799https://github.com/python/cpython/pull/151799
[3.14] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods (GH-151782) #151800https://github.com/python/cpython/pull/151800
[3.13] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods (GH-151782) #151801https://github.com/python/cpython/pull/151801
[3.15] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) #151802https://github.com/python/cpython/pull/151802
[3.14] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) #151803https://github.com/python/cpython/pull/151803
[3.13] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) #151804https://github.com/python/cpython/pull/151804
[3.15] gh-151678: Add tests for tkinter widget virtual events (GH-151793) #151805https://github.com/python/cpython/pull/151805
[3.14] gh-151678: Add tests for tkinter widget virtual events (GH-151793) #151806https://github.com/python/cpython/pull/151806
[3.13] gh-151678: Add tests for tkinter widget virtual events (GH-151793) #151807https://github.com/python/cpython/pull/151807
gh-151678: Add tests for tkinter.simpledialog #151856https://github.com/python/cpython/pull/151856
[3.14] gh-151678: Add tests for tkinter.simpledialog (GH-151856) #151859https://github.com/python/cpython/pull/151859
[3.13] gh-151678: Add tests for tkinter.simpledialog (GH-151856) #151860https://github.com/python/cpython/pull/151860
[3.15] gh-151678: Add tests for tkinter.simpledialog (GH-151856) #151869https://github.com/python/cpython/pull/151869
gh-151678: Add tests for ttk Menubutton and OptionMenu widget options #151960https://github.com/python/cpython/pull/151960
[3.15] gh-151678: Add tests for ttk Menubutton and OptionMenu widget options (GH-151960) #151963https://github.com/python/cpython/pull/151963
[3.14] gh-151678: Add tests for ttk Menubutton and OptionMenu widget options (GH-151960) #151964https://github.com/python/cpython/pull/151964
[3.13] gh-151678: Add tests for ttk Menubutton and OptionMenu widget options (GH-151960) #151965https://github.com/python/cpython/pull/151965
gh-151678: Add more tests for tkinter.dnd #152362https://github.com/python/cpython/pull/152362
[3.15] gh-151678: Add more tests for tkinter.dnd (GH-152362) #152367https://github.com/python/cpython/pull/152367
[3.14] gh-151678: Add more tests for tkinter.dnd (GH-152362) #152368https://github.com/python/cpython/pull/152368
[3.13] gh-151678: Add more tests for tkinter.dnd (GH-152362) #152369https://github.com/python/cpython/pull/152369
serhiy-storchakahttps://github.com/serhiy-storchaka
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15pre-release feature fixes, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-tkinterhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-tkinter%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.