[issue1539] test_collections: failing refleak test
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Dec 5 10:26:14 CET 2007
Amaury Forgeot d'Arc added the comment:
I found indeed 2 problems in regrtest.py.
I don't have svn access for the moment, so I cannot provide a regular
patch, so here are the changes:
- The line
obj._abc_registry = abcs.get(obj, {}).copy()
incorrectly puts an empty dictionary in _abc_registry. It should be a set:
from weakref import WeakSet
obj._abc_registry = abcs.get(obj, WeakSet()).copy()
- This test in dash_R()
if not isinstance(abc, _Abstract):
is not correct. It should be
if not issubclass(abc, _Abstract):
(Note that dash_R_cleanup contains the same line, but correctly)
----------
nosy: +amaury.forgeotdarc
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1539>
__________________________________
More information about the Python-bugs-list
mailing list