Xavier de Gaye added the comment:

The chain of events following a call to set_nomemory_allocator() is 
deterministic, this is another difference with pyfailmalloc. Also what happens 
then after this call is not very close to real life as memory is never freed.

Having the possibility to trigger memory exhaustion in N allocations instead of 
rightaway would be very useful. Maybe this could be done by including 
pyfailmalloc in _testcapi with some changes to enable multiple behaviors, among 
which one of them would be deterministic.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30695>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to