[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2018-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: James, please confirm that this issue still exists in 3.6 and 3.7. -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: James, could you check again with a recent Python and see if the #11798 fix makes things any better? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22293

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-09-01 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- stage: - needs patch versions: +Python 3.5 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22293 ___

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This means that by the end of a run, we have quite a lot of references to MagicMocks. It sounds like you are bitten by unittest keeping references to all past TestCase instances. This has been fixed recently (see #11798). -- nosy: +pitrou

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-08-29 Thread Michael Foord
Michael Foord added the comment: Switching to Mock instead of MagicMock may help, as that doesn't have the magic proxies at all. (patch has an argument to specify which class of Mock should be used to create the mock object, MagicMock is just the default.) Other wise using __slots__ would be

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-08-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +michael.foord title: mock could be less memory-intensive - unittest.mock: use slots in MagicMock to reduce memory footprint ___ Python tracker rep...@bugs.python.org

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-08-28 Thread Natalia B. Bidart
Changes by Natalia B. Bidart nataliabid...@gmail.com: -- nosy: +nessita ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22293 ___ ___