cpython/Lib/test/test_unittest
Miss Islington (bot) 951ed33054
[3.12] gh-104745: Limit starting a patcher more than once without stopping it (GH-126649) (#126773)
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 1e40c5ba47)

Co-authored-by: Red4Ru <39802734+Red4Ru@users.noreply.github.com>
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:37:34 +00:00
..
testmock [3.12] gh-104745: Limit starting a patcher more than once without stopping it (GH-126649) (#126773) 2024-11-13 08:37:34 +00:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_async_case.py
test_break.py
test_case.py [3.12] gh-120544: Add else: fail() to tests where exception is expected (GH-120545) (#120547) 2024-06-15 12:54:22 +01:00
test_discovery.py [3.12] gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242) (GH-117508) 2024-04-23 12:41:32 +00:00
test_functiontestcase.py
test_loader.py
test_program.py
test_result.py
test_runner.py
test_setups.py
test_skipping.py [3.12] gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588)" (GH-114470) (GH-114994) 2024-02-04 16:00:56 +00:00
test_suite.py
test_util.py [3.12] gh-121708: Improve test coverage for unittest.util (GH-121713) (GH-121737) 2024-07-14 10:58:55 +02:00