summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_weakset.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.Meador Inge2012-03-051-11/+23
|
* Fix some set algebra methods of WeakSet objects.Antoine Pitrou2012-03-041-4/+18
|
* Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, ↵Antoine Pitrou2012-03-011-0/+47
| | | | | | | WeakValueDictionary) to return a better approximation when some objects are dead or dying. Moreover, the implementation is now O(1) rather than O(n). Thanks to Yury Selivanov for reporting.
* Delete the iterator, which could accidentally keep a temporary reference to ↵Antoine Pitrou2012-02-201-0/+1
| | | | the yielded element.
* #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary ↵Georg Brandl2010-12-031-1/+2
| | | | does.
* use assert[Not]In where appropriateEzio Melotti2010-01-231-3/+3
|
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-23/+23
| | | | A patch from Dave Malcolm.
* Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust againstAntoine Pitrou2010-01-081-0/+50
| | | | the destruction of weakref'ed objects while iterating.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-40/+40
|
* Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.Robert Schuppenies2009-05-171-10/+13
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Ignore test_c_api when checking for set methods. Thanks Brett!Georg Brandl2008-05-181-1/+1
|
* Better diagnostic.Georg Brandl2008-05-181-1/+2
|
* Add a test suite for WeakSet mostly derived from test_set and fix someGeorg Brandl2008-05-181-0/+311
issues in the weakset implementation discovered with it.