Skip to content

Fix new Tkinter tests for wantobjects=0 #119791

@serhiy-storchaka

Description

@serhiy-storchaka

Some of recently added Tkinter tests for PhotoImage do not pass if tkinter.wantobjects=0, because PhotoImage.get() returns a string like "255 0 0" instead of a 3-tuple of integers like (255, 0, 0).

Other solution is to make PhotoImage.get() always returning a 3-tuple of integers, and it is a correct solution, but I am not sure that it can be backported. It can break the code that uses tkinter.wantobjects=0 and manually parses the returned string.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestestsTests in the Lib/test dirtopic-tkinter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions