Use of MagicMocks causes unnecessary memory use
Bug #1316401 reported by
Kevin Benton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Kevin Benton | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned |
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).
Changed in neutron: | |
assignee: | nobody → Kevin Benton (kevinbenton) |
tags: | added: icehouse-backport-potential |
tags: | removed: icehouse-backport-potential |
Changed in neutron: | |
status: | Incomplete → Fix Released |
assignee: | nobody → Kevin Benton (kevinbenton) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/92300
Review: https:/