summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest/testmock/testasync.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-134657: Remove newly added private names from asyncio.__all__ ↵Miss Islington (bot)2025-07-091-1/+1
| | | | | | | | (GH-134665) (#136455) gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (cherry picked from commit 797abd1f7fdeb744bf9f683ef844e7279aad3d72) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-71339: Add additional assertion methods for unittest (GH-128707)Serhiy Storchaka2025-01-141-7/+7
| | | | | | | | | | | | 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-127949: deprecate `asyncio.set_event_loop_policy` (#128024)Kumar Aditya2024-12-181-1/+1
| | | | First step towards deprecating the asyncio policy system. This deprecates `asyncio.set_event_loop_policy` and will be removed in Python 3.16.
* gh-123087: ``Lib/test/test_unittest/testmock/testasync.py``: Replace usage ↵Kirill Podoprigora2024-08-171-19/+15
| | | | | of the deprecated ``asyncio.iscoroutinefunction`` with the ``inspect.iscoroutinefunction`` (#123088) asyncio.iscoroutinefunction -> inspect.iscoroutinefunction
* gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302)Nikita Sobolev2023-07-071-2/+3
|
* gh-94924: support `inspect.iscoroutinefunction` in ↵Thomas Grainger2023-06-091-0/+23
| | | | | | | | | | `create_autospec(async_def)` (#94962) * support inspect.iscoroutinefunction in create_autospec(async_def) * test create_autospec with inspect.iscoroutine and inspect.iscoroutinefunction * test when create_autospec functions check their signature
* Remove skipped test in test for async mocks. (#100559)Chris Withers2022-12-281-4/+0
| | | | | | Remove skipped test. See discussion on https://github.com/python/cpython/pull/25326. Fix is apparently here, but no-one is confident to review and land: https://github.com/python/cpython/pull/25347.
* gh-100287: Fix unittest.mock.seal with AsyncMock (#100496)Shantanu2022-12-241-1/+13
|
* gh-83076: 3.8x speed improvement in (Async)Mock instantiation (#100252)Carl Meyer2022-12-231-0/+13
|
* gh-98086: Now ``patch.dict`` can decorate async functions (#98095)Nikita Sobolev2022-11-111-0/+17
|
* gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)Victor Stinner2022-06-211-0/+1061
* 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