[issue5964] WeakSet cmp methods

Robert Schuppenies report at bugs.python.org
Mon May 11 18:30:45 CEST 2009


Robert Schuppenies <robert.schuppenies at gmail.com> added the comment:

Sounds right to me. Here is another patch plus tests.

Going through the other tests, I adapted two more tests to actually test
WeakSet. Also, I found the following one and think it is a copy&paste
from test_set which is not useful for test_weakset. Should it be removed
(as currently done in the patch)?

def test_set_literal(self):
    s = set([1,2,3])
    t = {1,2,3}
    self.assertEqual(s, t)

----------
Added file: http://bugs.python.org/file13957/_weakrefset.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5964>
_______________________________________


More information about the Python-bugs-list mailing list