0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 17:47:13 +01:00
cpython/Lib/test/test_unittest/testmock
Red4Ru 1e40c5ba47
gh-104745: Limit starting a patcher more than once without stopping it (#126649)
Previously, this would cause an `AttributeError` if the patch stopped more than once after this, and would also disrupt the original patched object.

---------

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-11-13 08:20:38 +00:00
..
__init__.py
__main__.py
support.py gh-119600: mock: do not access attributes of original when new_callable is set (#119601) 2024-06-11 06:41:12 +01:00
testasync.py gh-123087: `Lib/test/test_unittest/testmock/testasync.py: Replace usage of the deprecated asyncio.iscoroutinefunction with the inspect.iscoroutinefunction` (#123088) 2024-08-17 11:03:51 +03:00
testcallable.py
testhelpers.py gh-124176: Add special support for dataclasses to create_autospec (#124429) 2024-09-27 09:48:31 +03:00
testmagicmethods.py gh-123934: Fix MagicMock not to reset magic method return values (#124038) 2024-09-19 10:55:47 +03:00
testmock.py gh-120732: Fix name passing to Mock, when using kwargs to create_autospec (#120737) 2024-06-19 21:35:11 +01:00
testpatch.py gh-104745: Limit starting a patcher more than once without stopping it (#126649) 2024-11-13 08:20:38 +00:00
testsealable.py
testsentinel.py
testthreadingmock.py
testwith.py