summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest/testmock/testmagicmethods.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-71339: Add additional assertion methods for unittest (GH-128707)Serhiy Storchaka2025-01-141-6/+6
| | | | | | | | | | | | Add the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() Also improve error messages for assertIsInstance() and assertNotIsInstance().
* gh-123934: Fix `MagicMock` not to reset magic method return values (#124038)sobolevn2024-09-191-0/+39
|
* gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)Wulian2024-08-111-1/+1
| | | | | Deprecate `asyncio.iscoroutinefunction` in favor of `inspect.iscoroutinefunction`. Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)Victor Stinner2022-06-211-0/+509
* Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py