Title: New test_ttk failure on Mac: "bad screen distance" · Issue #124378 · python/cpython · GitHub
Open Graph Title: New test_ttk failure on Mac: "bad screen distance" · Issue #124378 · python/cpython
X Title: New test_ttk failure on Mac: "bad screen distance" · Issue #124378 · python/cpython
Description: Bug report Bug description: I've been running with some patches from @ronaldoussoren to the following: modified: Lib/test/support/__init__.py modified: Lib/test/test_ttk/test_style.py modified: Lib/test/test_ttk/test_widgets.py (See atta...
Open Graph Description: Bug report Bug description: I've been running with some patches from @ronaldoussoren to the following: modified: Lib/test/support/__init__.py modified: Lib/test/test_ttk/test_style.py modified: Lib...
X Description: Bug report Bug description: I've been running with some patches from @ronaldoussoren to the following: modified: Lib/test/support/__init__.py modified: Lib/test/test_ttk/test_style.py modified:...
Opengraph URL: https://github.com/python/cpython/issues/124378
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New test_ttk failure on Mac: \"bad screen distance\"","articleBody":"# Bug report\n\n### Bug description:\n\nI've been running with some patches from @ronaldoussoren to the following:\n\n```\n\tmodified: Lib/test/support/__init__.py\n\tmodified: Lib/test/test_ttk/test_style.py\n\tmodified: Lib/test/test_ttk/test_widgets.py\n```\n\n(See attached diff.)\n[test_ttk.txt](https://github.com/user-attachments/files/17104079/test_ttk.txt)\n\nEverything was working fine, but today I began to get a repeatable failure in `test_ttk`:\n\n```\n======================================================================\nFAIL: test_configure_height (test.test_ttk.test_widgets.NotebookTest.test_configure_height)\n----------------------------------------------------------------------\n_tkinter.TclError: bad screen distance \"\"\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 539, in test_configure_height\n self.checkIntegerParam(widget, 'height', 100, -100, 0)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 81, in checkIntegerParam\n self.checkInvalidParam(widget, name, '', errmsg=errmsg)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 67, in checkInvalidParam\n with self.assertRaisesRegex(tkinter.TclError, errmsg or ''):\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: \"\\Aexpected integer but got \"\"\\Z\" does not match \"bad screen distance \"\"\"\n\n======================================================================\nFAIL: test_configure_width (test.test_ttk.test_widgets.NotebookTest.test_configure_width)\n----------------------------------------------------------------------\n_tkinter.TclError: bad screen distance \"\"\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 543, in test_configure_width\n self.checkIntegerParam(widget, 'width', 402, -402, 0)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 81, in checkIntegerParam\n self.checkInvalidParam(widget, name, '', errmsg=errmsg)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py\", line 67, in checkInvalidParam\n with self.assertRaisesRegex(tkinter.TclError, errmsg or ''):\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: \"\\Aexpected integer but got \"\"\\Z\" does not match \"bad screen distance \"\"\"\n\n----------------------------------------------------------------------\nRan 342 tests in 6.364s\n```\n\nI'm putting this out there with no further investigation. I doubt it will be a release blocker for 3.13, but if so, maybe the sprinters can find and fix the problem quickly.\n\n### CPython versions tested on:\n\n3.12, 3.13, CPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-124542\n* gh-124544\n* gh-124545\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/smontanaro","@type":"Person","name":"smontanaro"},"datePublished":"2024-09-23T20:53:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/124378/cpython/issues/124378"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a72b55b-353c-b78f-2258-e5906bb59d1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F0A:3A35C6:C6A716:10B00E7:696AC18A |
| html-safe-nonce | d29c2529eb511b1ae6e6ac612ea558f94171d4e65e6f6ba8cf2d8d1bd5c3f3b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjBBOjNBMzVDNjpDNkE3MTY6MTBCMDBFNzo2OTZBQzE4QSIsInZpc2l0b3JfaWQiOiIzMTQ4NzU2OTY3MzI0NTY1ODk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e6a9600b51f7de34cc950a09bcb0d143d0a2b62a4534ba631db5a7675d3a154e |
| hovercard-subject-tag | issue:2543640635 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/124378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b797922a80f53e3cc3ac8768738bbaffe86e46cbdb3164cfd64a3b8fe65bd687/python/cpython/issues/124378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b797922a80f53e3cc3ac8768738bbaffe86e46cbdb3164cfd64a3b8fe65bd687/python/cpython/issues/124378 |
| og:image:alt | Bug report Bug description: I've been running with some patches from @ronaldoussoren to the following: modified: Lib/test/support/__init__.py modified: Lib/test/test_ttk/test_style.py modified: Lib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smontanaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width