Title: gh-143990: Do not assume the requested font size in test_font by serhiy-storchaka · Pull Request #153322 · python/cpython · GitHub
Open Graph Title: gh-143990: Do not assume the requested font size in test_font by serhiy-storchaka · Pull Request #153322 · python/cpython
X Title: gh-143990: Do not assume the requested font size in test_font by serhiy-storchaka · Pull Request #153322 · python/cpython
Description: On platforms that provide only bitmap fonts (for example the AMD64 Alpine Linux buildbot) a font created from a description such as ('Times', 20, 'bold') does not keep the requested size: Tk substitutes the nearest available size. The test_create and test_existing tests added in GH-152025 asserted the exact requested size (20) and therefore failed there. This asks Tk for the size it actually resolves for the description (via font actual) instead of assuming the requested value. The keyword/explicit-size assertions are unchanged, since those set the size directly. 🤖 Generated with Claude Code Issue: gh-143990
Open Graph Description: On platforms that provide only bitmap fonts (for example the AMD64 Alpine Linux buildbot) a font created from a description such as ('Times', 20, 'bold') does not keep the requested...
X Description: On platforms that provide only bitmap fonts (for example the AMD64 Alpine Linux buildbot) a font created from a description such as ('Times', 20, 'bold') does not ke...
Opengraph URL: https://github.com/python/cpython/pull/153322
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:16ced405-effe-bf34-b916-81e9d9da1eeb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B95A:2ECA08:102651F:160792A:6A53BAE7 |
| html-safe-nonce | dc6c3265db3debd8196fdd126359609a16b39b951676b0213d81dd651c1f8294 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTVBOjJFQ0EwODoxMDI2NTFGOjE2MDc5MkE6NkE1M0JBRTciLCJ2aXNpdG9yX2lkIjoiOTEzMjYxMzEzOTA4NjY4Njk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd47cd3cb31edf7d69cf256d357a092e0f37489087d01b19d6405751358aa679 |
| hovercard-subject-tag | pull_request:4014092825 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/153322/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | On platforms that provide only bitmap fonts (for example the AMD64 Alpine Linux buildbot) a font created from a description such as ('Times', 20, 'bold') does not keep the requested... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width