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

1 view
Skip to first unread message

Antoine Pitrou

unread,
Nov 13, 2012, 3:43:32 PM11/13/12
to pytho...@python.org
On Tue, 13 Nov 2012 21:26:51 +0100 (CET)
philip.jenvey <python-...@python.org> wrote:
> http://hg.python.org/cpython/rev/a580cf4ab940
> changeset: 80418:a580cf4ab940
> branch: 3.2
> parent: 80397:8a28c974f903
> user: Philip Jenvey <pje...@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.


_______________________________________________
Python-Dev mailing list
Pytho...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/dev-python%2Bgarchive-30976%40googlegroups.com
Reply all
Reply to author
Forward
0 new messages