cpython/Lib/test/test_unittest
Robert Collins 422c4fc855
gh-119600: mock: do not access attributes of original when new_callable is set (#119601)
In order to patch flask.g e.g. as in #84982, that
proxies getattr must not be invoked. For that,
mock must not try to read from the original
object. In some cases that is unavoidable, e.g.
when doing autospec. However, patch("flask.g",
new_callable=MagicMock) should be entirely safe.
2024-06-11 06:41:12 +01:00
..
testmock gh-119600: mock: do not access attributes of original when new_callable is set (#119601) 2024-06-11 06:41:12 +01:00
__init__.py
__main__.py
_test_warnings.py Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556) 2022-06-26 10:18:06 +03:00
dummy.py
support.py bpo-4080: unittest durations (#12271) 2023-04-03 00:12:51 +02:00
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 bpo-4080: unittest durations (#12271) 2023-04-03 00:12:51 +02:00
test_case.py gh-68968: Correcting message display issue with assertEqual (#103937) 2023-05-04 16:37:17 -06: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 gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497) 2023-09-12 16:33:30 +03:00
test_program.py GH-44626, GH-105476: Fix ntpath.isabs() handling of part-absolute paths (#113829) 2024-01-13 07:36:05 +00:00
test_result.py gh-105407: Remove unused imports in tests (#105408) 2023-06-06 22:50:43 +02:00
test_runner.py gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737) 2023-08-16 12:20:42 +03: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