cpython/Lib/test/test_unittest
Chris Withers 04091c0833
`unittest.mock` test and coverage fixup (#130787)
* Mark functions that will never be called with # pragma: no cover

* Fix testpatch.PatchTest.test_exit_idempotent

.stop() and __exit__ have subtly different code paths, so to really test __exit__ idempotency, we need to call it specifically twice.
2025-03-03 11:44:59 +00:00
..
namespace_test_pkg gh-80958: unittest: discovery support for namespace packages as start directory (#123820) 2024-10-23 13:41:33 +09:00
testmock `unittest.mock` test and coverage fixup (#130787) 2025-03-03 11:44:59 +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-127949: deprecate `asyncio.set_event_loop` (#128218) 2024-12-24 19:24:28 +05:30
test_break.py
test_case.py gh-71339: Fix an order-dependent failure in test_unittest (GH-129133) 2025-01-21 16:45:20 +02:00
test_discovery.py gh-80958: unittest: discovery support for namespace packages as start directory (#123820) 2024-10-23 13:41:33 +09:00
test_functiontestcase.py
test_loader.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
test_program.py gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877) 2025-01-21 16:10:08 +00:00
test_result.py gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877) 2025-01-21 16:10:08 +00:00
test_runner.py gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877) 2025-01-21 16:10:08 +00:00
test_setups.py
test_skipping.py gh-127221: Add colour to unittest output (#127223) 2024-12-05 21:10:46 +02:00
test_suite.py
test_util.py gh-121708: Improve test coverage for `unittest.util` (GH-121713) 2024-07-14 10:08:47 +02:00