yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #14158
[Bug 1316401] [NEW] Use of MagicMocks causes unnecessary memory use
Public bug reported:
There are many locations throughout the code-base that make use of
MagicMocks to capture and prevent external calls. However, several of
them never have assertions made on them so the fact that they record all
of the calls made to them is a waste of memory. This is especially true
for long-lived ones that span many tests and may record hundreds of
calls (e.g. RPC notifier mocks).
** Affects: neutron
Importance: Undecided
Assignee: Kevin Benton (kevinbenton)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Kevin Benton (kevinbenton)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1316401
Title:
Use of MagicMocks causes unnecessary memory use
Status in OpenStack Neutron (virtual network service):
New
Bug description:
There are many locations throughout the code-base that make use of
MagicMocks to capture and prevent external calls. However, several of
them never have assertions made on them so the fact that they record
all of the calls made to them is a waste of memory. This is especially
true for long-lived ones that span many tests and may record hundreds
of calls (e.g. RPC notifier mocks).
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1316401/+subscriptions
Follow ups
References