Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue38108

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Everything in Mock should inherit from Base
Type:Stage:resolved
Components:Versions:Python 3.9, Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: lisroachNosy List: ezio.melotti, lisroach, michael.foord, xtreak
Priority:normalKeywords:patch

Created on2019-09-11 13:24 bylisroach, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 16060mergedlisroach,2019-09-12 14:48
PR 16470mergedmiss-islington,2019-09-29 01:44
Messages (4)
msg351863 -(view)Author: Lisa Roach (lisroach)*(Python committer)Date: 2019-09-11 13:24
Everything within Mock should be inheriting from the top-level parent class, Base (and properly call super).For multiple inheritance to work correctly they all should be inheriting from the same parent class ultimately. Classes that need update:MagicMixinAsyncMagicMixinNonCallableMock (instance = object.__new__(new) should be switched to a super call here)
msg351886 -(view)Author: Lisa Roach (lisroach)*(Python committer)Date: 2019-09-11 14:00
Also:_AsyncIterator_AwaitEventSome of the code in AsyncMagicMixin might be able to be simplified if we inherit from MagicMixin instead, right now we might be duplicating work.In general we have to watch out for duplication/overwriting of attributes with this change.
msg353478 -(view)Author: Lisa Roach (lisroach)*(Python committer)Date: 2019-09-29 01:42
New changeset9a7d9519506ae807ca48ff02e2ea117ebac3450e by Lisa Roach in branch 'master':bpo-38108: Makes mock objects inherit from Base (GH-16060)https://github.com/python/cpython/commit/9a7d9519506ae807ca48ff02e2ea117ebac3450e
msg353530 -(view)Author: Lisa Roach (lisroach)*(Python committer)Date: 2019-09-30 04:02
New changesetb76ab352405df105c2d459fc66ef8dc98e47b37c by Lisa Roach (Miss Islington (bot)) in branch '3.8':bpo-38108: Makes mock objects inherit from Base (GH-16060) (GH-16470)https://github.com/python/cpython/commit/b76ab352405df105c2d459fc66ef8dc98e47b37c
History
DateUserActionArgs
2022-04-11 14:59:20adminsetgithub: 82289
2019-09-30 04:21:10lisroachsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-09-30 04:02:49lisroachsetmessages: +msg353530
2019-09-29 01:44:17miss-islingtonsetpull_requests: +pull_request16053
2019-09-29 01:42:49lisroachsetmessages: +msg353478
2019-09-12 14:48:33lisroachsetkeywords: +patch
stage: patch review
pull_requests: +pull_request15683
2019-09-11 14:00:00lisroachsetmessages: +msg351886
2019-09-11 13:24:30lisroachcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp