← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1316401] Re: Use of MagicMocks causes unnecessary memory use

 

** Changed in: neutron
       Status: Incomplete => Fix Released

** 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 neutron:
  Fix Released
Status in neutron icehouse series:
  Fix Released

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


References