Skip to content

Tkinter: Tk 8.7 alphabetizes options in certain error messages#104497

@chrstphrchvz

Description

@chrstphrchvz

As done by e.g. https://core.tcl-lang.org/tk/info/b7db31b3a38b and causing this Tkinter test to fail:

====================================================================== FAIL: test_configure_type (test.test_tkinter.test_widgets.MenuTest.test_configure_type) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/user/git/cpython/Lib/test/test_tkinter/test_widgets.py", line 1403, in test_configure_type self.checkEnumParam( File "/Users/user/git/cpython/Lib/test/test_tkinter/widget_tests.py", line 134, in checkEnumParam self.checkInvalidParam(widget, name, 'spam', errmsg=errmsg) File "/Users/user/git/cpython/Lib/test/test_tkinter/widget_tests.py", line 63, in checkInvalidParam self.assertEqual(str(cm.exception), errmsg) AssertionError: 'bad type "spam": must be menubar, normal, or tearoff' != 'bad type "spam": must be normal, tearoff, or menubar' - bad type "spam": must be menubar, normal, or tearoff + bad type "spam": must be normal, tearoff, or menubar 

Linked PRs

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