Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
I've been running with some patches from@ronaldoussoren to the following:
modified: Lib/test/support/__init__.pymodified: Lib/test/test_ttk/test_style.pymodified: Lib/test/test_ttk/test_widgets.py(See attached diff.)
test_ttk.txt
Everything was working fine, but today I began to get a repeatable failure intest_ttk:
======================================================================FAIL: test_configure_height (test.test_ttk.test_widgets.NotebookTest.test_configure_height)----------------------------------------------------------------------_tkinter.TclError: bad screen distance ""During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 539, in test_configure_height self.checkIntegerParam(widget, 'height', 100, -100, 0) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 81, in checkIntegerParam self.checkInvalidParam(widget, name, '', errmsg=errmsg) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 67, in checkInvalidParam with self.assertRaisesRegex(tkinter.TclError, errmsg or ''): ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: "\Aexpected integer but got ""\Z" does not match "bad screen distance """======================================================================FAIL: test_configure_width (test.test_ttk.test_widgets.NotebookTest.test_configure_width)----------------------------------------------------------------------_tkinter.TclError: bad screen distance ""During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 543, in test_configure_width self.checkIntegerParam(widget, 'width', 402, -402, 0) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 81, in checkIntegerParam self.checkInvalidParam(widget, name, '', errmsg=errmsg) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/skip/src/python/cpython/Lib/test/test_tkinter/widget_tests.py", line 67, in checkInvalidParam with self.assertRaisesRegex(tkinter.TclError, errmsg or ''): ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: "\Aexpected integer but got ""\Z" does not match "bad screen distance """----------------------------------------------------------------------Ran 342 tests in 6.364sI'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.
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
macOS