Skip to content

[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-128815) - #129059

Merged
serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-c6a566e-3.12
Jan 20, 2025
Merged

[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-128815)#129059
serhiy-storchaka merged 1 commit into
python:3.12from
serhiy-storchaka:backport-c6a566e-3.12

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented Jan 20, 2025

Copy link
Copy Markdown
Member

Add a mix-in class ExtraAssertions containing the following methods:

  • assertHasAttr() and assertNotHasAttr()
  • assertIsSubclass() and assertNotIsSubclass()
  • assertStartsWith() and assertNotStartsWith()
  • assertEndsWith() and assertNotEndsWith()

(cherry picked from commit c6a566e)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
(cherry picked from commit 06cad77)

…t.support (pythonGH-128707) (pythonGH-128815)
Add a mix-in class ExtraAssertions containing the following methods:
* assertHasAttr() and assertNotHasAttr()
* assertIsSubclass() and assertNotIsSubclass()
* assertStartsWith() and assertNotStartsWith()
* assertEndsWith() and assertNotEndsWith()
(cherry picked from commit c6a566e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 06cad77)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@serhiy-storchaka