[Python-Dev] cpython (3.2): add gc_collects to weakref tests

Antoine Pitrou solipsis at pitrou.net
Tue Nov 13 21:43:32 CET 2012


On Tue, 13 Nov 2012 21:26:51 +0100 (CET)
philip.jenvey <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/a580cf4ab940
> changeset:   80418:a580cf4ab940
> branch:      3.2
> parent:      80397:8a28c974f903
> user:        Philip Jenvey <pjenvey at underboss.org>
> date:        Tue Nov 13 12:26:31 2012 -0800
> summary:
>   add gc_collects to weakref tests
> 
> files:
>   Lib/test/test_exceptions.py |  3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)

While this is necessary for non-refcounted implementations, it does
relax the requirement quite a bit for CPython (absence of reference
cycles can be a significant feature). I think perhaps gc_collect()
should be called only for non-CPython implementations.

Regards

Antoine.




More information about the Python-Dev mailing list