Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.13] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) #120864

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 22, 2024

The tests are now passed with the current version of Tcl/Tk under
development (8.7b1+ and 9.0b3+).

The following changes were also made to make the tests more flexible:

  • Helper methods like checkParam() now interpret the expected error message
    as a regular expression instead of a literal.
  • Add support of new arguments in checkEnumParam():
    • allow_empty=True skips testing with empty string;
    • fullname= specifies the name for error message if it differs from the
      option name;
    • sort=True sorts values for error message.
  • Add support of the allow_empty argument in checkReliefParam():
    allow_empty=True adds an empty string to the list of accepted values.
  • Attributes _clip_highlightthickness, _clip_pad and _clip_borderwidth
    specify how negative values of options -highlightthickness, -padx, -pady
    and -borderwidth are handled.
  • Use global variables for some common error messages.

(cherry picked from commit 6ad26de)

Co-authored-by: Serhiy Storchaka [email protected]
Co-authored-by: Terry Jan Reedy [email protected]

…H-120824)

The tests are now passed with the current version of Tcl/Tk under
development (8.7b1+ and 9.0b3+).

The following changes were also made to make the tests more flexible:

* Helper methods like checkParam() now interpret the expected error message
  as a regular expression instead of a literal.
* Add support of new arguments in checkEnumParam():
  - allow_empty=True skips testing with empty string;
  - fullname= specifies the name for error message if it differs from the
    option name;
  - sort=True sorts values for error message.
* Add support of the allow_empty argument in checkReliefParam():
  allow_empty=True adds an empty string to the list of accepted values.
* Attributes _clip_highlightthickness, _clip_pad and  _clip_borderwidth
  specify how negative values of options -highlightthickness, -padx, -pady
  and -borderwidth are handled.
* Use global variables for some common error messages.

(cherry picked from commit 6ad26de)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 22, 2024 06:54
@serhiy-storchaka serhiy-storchaka merged commit 4fabbf9 into python:3.13 Jun 22, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants