Skip to content

Tkinter spinbox test failures on Tk 8.7 #104856

Closed
@chrstphrchvz

Description

@chrstphrchvz

Tk 8.7 spinboxes allow setting to to an amount less than from, and setting from to an amount greater than to, by swapping the values rather than raising an exception; see https://core.tcl-lang.org/tk/info/841280 . This causes two tests to fail:

======================================================================
FAIL: test_configure_from (test.test_tkinter.test_widgets.SpinboxTest.test_configure_from)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/user/git/cpython/Lib/test/test_tkinter/test_widgets.py", line 490, in test_configure_from
    self.checkInvalidParam(widget, 'from', 200,
  File "/Users/user/git/cpython/Lib/test/test_tkinter/widget_tests.py", line 60, in checkInvalidParam
    with self.assertRaises(tkinter.TclError) as cm:
AssertionError: TclError not raised

======================================================================
FAIL: test_configure_to (test.test_tkinter.test_widgets.SpinboxTest.test_configure_to)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/user/git/cpython/Lib/test/test_tkinter/test_widgets.py", line 501, in test_configure_to
    self.checkInvalidParam(widget, 'to', -200,
  File "/Users/user/git/cpython/Lib/test/test_tkinter/widget_tests.py", line 60, in checkInvalidParam
    with self.assertRaises(tkinter.TclError) as cm:
AssertionError: TclError not raised

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-tkintertype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions