Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New test_ttk failure on Mac: "bad screen distance" #124378

Closed
Labels
@smontanaro

Description

@smontanaro

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.364s

I'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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp