STINNER Victor added the comment: > It is hard to write reliable test Ah? Why not using something like mock.patch('mock.updatecache', side_effect=MemoryError)? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23838> _______________________________________