mirror of https://github.com/python/cpython.git
![]() gh-104745: Limit starting a patcher more than once without stopping it (GH-126649)
Previously, this would cause an `AttributeError` if the patch stopped more than once after this, and would also disrupt the original patched object.
---------
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
support.py | ||
testasync.py | ||
testcallable.py | ||
testhelpers.py | ||
testmagicmethods.py | ||
testmock.py | ||
testpatch.py | ||
testsealable.py | ||
testsentinel.py | ||
testthreadingmock.py | ||
testwith.py |