[Python-checkins] Fix a typo in Lib/unittest/mock.py (#136067)

2025-06-28 Thread cjw296
https://github.com/python/cpython/commit/35ecaf90b2eb5494ac92c3202f44a3602b4da87c commit: 35ecaf90b2eb5494ac92c3202f44a3602b4da87c branch: main author: Weilin Du <[email protected]> committer: cjw296 date: 2025-06-28T10:25:07+01:00 summary: Fix a typo in Lib/un

[Python-checkins] gh-135368: Fix mocks on dataclass specs with `instance=True` (#135421)

2025-06-14 Thread cjw296
https://github.com/python/cpython/commit/c8319a3fea9ff7f9b49008be3b5d681112bbe7f3 commit: c8319a3fea9ff7f9b49008be3b5d681112bbe7f3 branch: main author: sobolevn committer: cjw296 date: 2025-06-14T09:46:43+01:00 summary: gh-135368: Fix mocks on dataclass specs with `instance=True` (#135421

[Python-checkins] `unittest.mock` test and coverage fixup (#130787)

2025-03-03 Thread cjw296
https://github.com/python/cpython/commit/04091c083340dde7d4eeb6d945c70f3b37d88f85 commit: 04091c083340dde7d4eeb6d945c70f3b37d88f85 branch: main author: Chris Withers committer: cjw296 date: 2025-03-03T11:44:59Z summary: `unittest.mock` test and coverage fixup (#130787) * Mark functions that

[Python-checkins] [3.12] gh-104745: Limit starting a patcher more than once without stopping it (GH-126649) (#126773)

2024-11-13 Thread cjw296
https://github.com/python/cpython/commit/951ed3305489ef2180972c9786de0ff61042128b commit: 951ed3305489ef2180972c9786de0ff61042128b branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-11-13T08:37:34Z summary: [3.12] gh-

[Python-checkins] [3.13] gh-104745: Limit starting a patcher more than once without stopping it (GH-126649) (#126772)

2024-11-13 Thread cjw296
https://github.com/python/cpython/commit/e8dbe7ec573c50d082d4b7a32fe54ead0937557a commit: e8dbe7ec573c50d082d4b7a32fe54ead0937557a branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-11-13T08:46:12Z summary: [3.13] gh-

[Python-checkins] gh-104745: Limit starting a patcher more than once without stopping it (#126649)

2024-11-13 Thread cjw296
https://github.com/python/cpython/commit/1e40c5ba47780ddd91868abb3aa064f5ba3015e4 commit: 1e40c5ba47780ddd91868abb3aa064f5ba3015e4 branch: main author: Red4Ru <[email protected]> committer: cjw296 date: 2024-11-13T08:20:38Z summary: gh-104745: Limit starting a patche

[Python-checkins] gh-117765: Improve documentation for `mocker.patch.dict` (#121755)

2024-07-15 Thread cjw296
https://github.com/python/cpython/commit/8303d32ff55945c5b38eeeaf1b1811dbcf8aa9be commit: 8303d32ff55945c5b38eeeaf1b1811dbcf8aa9be branch: main author: Dominic H committer: cjw296 date: 2024-07-15T07:14:17Z summary: gh-117765: Improve documentation for `mocker.patch.dict` (#121755) files: A

[Python-checkins] [3.13] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120760)

2024-06-19 Thread cjw296
https://github.com/python/cpython/commit/355d928e55d7c82f91989d08653215cb7e151c6e commit: 355d928e55d7c82f91989d08653215cb7e151c6e branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-19T20:59:28Z summary: [3.13] gh-

[Python-checkins] [3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120761)

2024-06-19 Thread cjw296
https://github.com/python/cpython/commit/34ace5ba4c5764a27a01dc8139232138c8269000 commit: 34ace5ba4c5764a27a01dc8139232138c8269000 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-19T20:53:19Z summary: [3.12] gh-

[Python-checkins] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (#120737)

2024-06-19 Thread cjw296
https://github.com/python/cpython/commit/1e4815692f6c8a37a3974d0d7d2025494d026d76 commit: 1e4815692f6c8a37a3974d0d7d2025494d026d76 branch: main author: Nikita Sobolev committer: cjw296 date: 2024-06-19T21:35:11+01:00 summary: gh-120732: Fix `name` passing to `Mock`, when using kwargs to

[Python-checkins] [3.13] gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__ (GH-120019) (#120336)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/81eae217335fc66bec343b9f11f1b68fe85667bf commit: 81eae217335fc66bec343b9f11f1b68fe85667bf branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-11T06:12:16Z summary: [3.13] gh

[Python-checkins] [3.12] gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__ (GH-120019) (#120337)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/f6481925d80080f09c3bb264da7f5eedf0f86068 commit: f6481925d80080f09c3bb264da7f5eedf0f86068 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-11T06:07:25Z summary: [3.12] gh

[Python-checkins] [3.13] gh-119600: mock: do not access attributes of original when new_callable is set (GH-119601) (#120334)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/aba5f2a4d10a7b261d4af03a54a8b1083bd83700 commit: aba5f2a4d10a7b261d4af03a54a8b1083bd83700 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-11T06:04:06Z summary: [3.13] gh-

[Python-checkins] [3.12] gh-119600: mock: do not access attributes of original when new_callable is set (GH-119601) (#120335)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/fa291a35eb29c53958aa5d2e2b58aea2441ffca8 commit: fa291a35eb29c53958aa5d2e2b58aea2441ffca8 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-06-11T06:01:02Z summary: [3.12] gh-

[Python-checkins] gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__ (#120019)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/9e9ee50421c857b443e2060274f17fb884d54473 commit: 9e9ee50421c857b443e2060274f17fb884d54473 branch: main author: blhsing committer: cjw296 date: 2024-06-11T05:42:49Z summary: gh-65454: avoid triggering call to a PropertyMock in NonCallableMock.__setattr__

[Python-checkins] gh-119600: mock: do not access attributes of original when new_callable is set (#119601)

2024-06-10 Thread cjw296
https://github.com/python/cpython/commit/422c4fc855afd18bcc6415902ea1d85a50cb7ce1 commit: 422c4fc855afd18bcc6415902ea1d85a50cb7ce1 branch: main author: Robert Collins committer: cjw296 date: 2024-06-11T06:41:12+01:00 summary: gh-119600: mock: do not access attributes of original when

[Python-checkins] [3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163) (#118517)

2024-05-02 Thread cjw296
https://github.com/python/cpython/commit/23ba96e2433d17e86f4770a64b94aaf9ad22a25b commit: 23ba96e2433d17e86f4770a64b94aaf9ad22a25b branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: cjw296 date: 2024-05-02T18:01:17Z summary: [3.12] gh

[Python-checkins] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (#118163)

2024-05-02 Thread cjw296
https://github.com/python/cpython/commit/b28a3339e4c63ea3a801dba9bbbc6af5af42c3a0 commit: b28a3339e4c63ea3a801dba9bbbc6af5af42c3a0 branch: main author: infohash <[email protected]> committer: cjw296 date: 2024-05-02T18:36:35+01:00 summary: gh-90848: Fixed create_au

[Python-checkins] [3.11] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117124)

2024-03-22 Thread cjw296
https://github.com/python/cpython/commit/51da1ddefc74354cfb353db7f61ea7bb6298b332 commit: 51da1ddefc74354cfb353db7f61ea7bb6298b332 branch: 3.11 author: infohash <[email protected]> committer: cjw296 date: 2024-03-22T09:48:41Z summary: [3.11] gh-75988: Fix issue

[Python-checkins] [3.12] gh-75988: Fix issues with autospec ignoring wrapped object (GH-115223) (#117119)

2024-03-22 Thread cjw296
https://github.com/python/cpython/commit/ad0ff8603432d08fcd9521799e6a38ba941b7e60 commit: ad0ff8603432d08fcd9521799e6a38ba941b7e60 branch: 3.12 author: infohash <[email protected]> committer: cjw296 date: 2024-03-22T09:47:52Z summary: [3.12] gh-75988: Fix issue

[Python-checkins] gh-75988: Fix issues with autospec ignoring wrapped object (#115223)

2024-03-08 Thread cjw296
https://github.com/python/cpython/commit/735fc2cbbcf875c359021b5b2af7f4c29f4cf66d commit: 735fc2cbbcf875c359021b5b2af7f4c29f4cf66d branch: main author: infohash <[email protected]> committer: cjw296 date: 2024-03-08T19:14:32Z summary: gh-75988: Fix issues with au