Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-119600: mock: do not access attributes of original when new_callable is ↵ | Robert Collins | 2024-06-11 | 1 | -0/+11 |
| | | | | | | | | | | 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. | ||||
* | gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043) | Victor Stinner | 2022-06-21 | 1 | -0/+16 |
* Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py |