]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jan 2025 09:19:00 +0000 (11:19 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 09:19:00 +0000 (11:19 +0200)
commitc6a566e47b9903d48e6e1e78a1af20e6c6c535cf
tree4d0180b478eab90747a35bdc83a4059927d5363a
parent59b919b082bcb96a66eea2b64b6572ceb1ce6210
[3.13] gh-71339: Add additional assertion methods in test.support (GH-128707) (GH-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 06cad77a5b345adde88609be9c3c470c5cd9f417)
Lib/test/support/testcase.py
Lib/test/test_descr.py
Lib/test/test_gdb/util.py
Lib/test/test_importlib/resources/test_functional.py
Lib/test/test_pyclbr.py
Lib/test/test_typing.py
Lib/test/test_venv.py