cpython/Lib/test/test_unittest
Miss Islington (bot) bae0ba9ec7
[3.13] gh-150484: Fix mock_open __exit__ with contextlib.ExitStack (GH-151829) (GH-151861)
mock_open's _exit_side_effect had a fixed 3-arg signature, but
  contextlib.ExitStack calls __exit__ with 4 args (self + 3 exc info).
  Use *args to accept any number of arguments.
(cherry picked from commit 85fa295073)

Co-authored-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
2026-06-21 17:02:30 +00:00
..
testmock [3.13] gh-150484: Fix mock_open __exit__ with contextlib.ExitStack (GH-151829) (GH-151861) 2026-06-21 17:02:30 +00:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs (GH-117107) 2024-04-03 14:19:49 +02:00
test_async_case.py gh-110774: allow setting the Runner(loop_factory=...) from IsolatedAsyncioTestCase (#110776) 2023-10-31 15:03:54 -07:00
test_break.py
test_case.py [3.13] gh-120544: Add else: fail() to tests where exception is expected (GH-120545) (#120546) 2024-06-15 12:54:07 +01:00
test_discovery.py gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242) 2024-04-03 16:17:13 +02:00
test_functiontestcase.py
test_loader.py [3.13] gh-120665: make unittest loaders avoid loading test cases that are abstract base classes (GH-120666) (#151599) 2026-06-17 11:49:23 -04:00
test_program.py [3.13] gh-136442: Fix unittest to return exit code 5 when setUpClass raises an exception (GH-136487) (#141577) 2025-11-15 01:23:03 +00:00
test_result.py [3.13] gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars (GH-127877) (#129138) 2025-01-22 21:09:51 +02:00
test_runner.py [3.13] gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars (GH-127877) (#129138) 2025-01-22 21:09:51 +02:00
test_setups.py
test_skipping.py gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 (#106588)" (GH-114470) 2024-02-04 17:27:42 +02:00
test_suite.py
test_util.py [3.13] gh-121708: Improve test coverage for unittest.util (GH-121713) (GH-121738) 2024-07-14 08:32:41 +00:00