]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jan 2025 12:06:02 +0000 (14:06 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 12:06:02 +0000 (12:06 +0000)
commit032058cb62c77824800d76a765ba28c733b4335f
tree9ac233104a9ac9aacbcd3ac60e1d4ad16cb2018f
parent7f68e7bf2a768489ece13054d0cf9566d176c576
[3.12] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-128815) (GH-129059)

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 c6a566e47b9903d48e6e1e78a1af20e6c6c535cf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 06cad77a5b345adde88609be9c3c470c5cd9f417)
Lib/test/support/testcase.py
Lib/test/test_descr.py
Lib/test/test_gdb/util.py
Lib/test/test_pyclbr.py
Lib/test/test_typing.py
Lib/test/test_venv.py