GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tkinter spinbox test failures on Tk 8.7 · Issue #104856 · python/cpython

Tkinter spinbox test failures on Tk 8.7 #104856

New issue
Copy link
New issue
Copy link
Closed
Closed
Tkinter spinbox test failures on Tk 8.7#104856
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@chrstphrchvz
chrstphrchvz
opened on May 24, 2023
Issue body actions

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

Activity

  1. terryjreedy
    added
    topic-tkinter
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on May 24, 2023
  2. terryjreedy commented on May 28, 2023

    @terryjreedy
    terryjreedy
    on May 28, 2023
    Member
    More actions

    These assertion failures can be fixed by the same mechanism used to fix assertion failures in #104855, and on the same PR.

  3. terryjreedy
    added a commit that references this issue on May 29, 2023

    pythongh-104855: Update more tk tests for 8.7

    This issue will close once commit deef967 is merged into the 'main' branch.
    deef967
  4. serhiy-storchaka commented on Jun 22, 2024

    @serhiy-storchaka
    serhiy-storchaka
    on Jun 22, 2024
    Member
    More actions

    Fixed by #120824.

  5. serhiy-storchaka
    closed this as completedon Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.