Skip to content

[3.13] gh-151678: Add tests for tkinter.Canvas (GH-151683)#151718

Merged
serhiy-storchaka merged 2 commits into
python:3.13from
miss-islington:backport-bb127c5-3.13
Jun 19, 2026
Merged

[3.13] gh-151678: Add tests for tkinter.Canvas (GH-151683)#151718
serhiy-storchaka merged 2 commits into
python:3.13from
miss-islington:backport-bb127c5-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Cover previously-untested Canvas methods in CanvasTest:

  • item creation and types, bbox, coordinate conversion, move/scale,
    find and addtag queries, tags, item configuration, stacking order,
    text-item editing, selection, focus, scan and postscript;
  • the create_arc, create_oval, create_bitmap, create_image,
    create_text and create_window item creation methods, checking
    coordinates, default and explicit options, valid enumerations and
    rejection of invalid values;
  • tag_bind() and tag_unbind(), checking the returned function id and
    binding script, querying bound sequences, the add parameter, event
    delivery to items via a tag, and removal of a single binding by id
    or all bindings for a sequence.
    (cherry picked from commit bb127c5)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Cover previously-untested Canvas methods in CanvasTest:

* item creation and types, bbox, coordinate conversion, move/scale,
  find and addtag queries, tags, item configuration, stacking order,
  text-item editing, selection, focus, scan and postscript;
* the create_arc, create_oval, create_bitmap, create_image,
  create_text and create_window item creation methods, checking
  coordinates, default and explicit options, valid enumerations and
  rejection of invalid values;
* tag_bind() and tag_unbind(), checking the returned function id and
  binding script, querying bound sequences, the add parameter, event
  delivery to items via a tag, and removal of a single binding by id
  or all bindings for a sequence.
(cherry picked from commit bb127c5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 19, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 19, 2026 09:18
@read-the-docs-community

read-the-docs-community Bot commented Jun 19, 2026

Copy link
Copy Markdown

@serhiy-storchaka serhiy-storchaka merged commit 92bd696 into python:3.13 Jun 19, 2026
39 checks passed
@miss-islington miss-islington deleted the backport-bb127c5-3.13 branch June 19, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants