summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_weakref.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch 564549 (Erik Andersén).Guido van Rossum2002-06-101-0/+11
| | | | | | | The WeakKeyDictionary constructor didn't work when a dict arg was given. Fixed by moving a line. Also adding a unit test. Bugfix candidate.
* Improve coverage of Objects/weakrefobject.c.Fred Drake2002-04-111-0/+16
|
* Add some additional tests that check more proxy behaviors.Fred Drake2001-12-191-0/+18
|
* Regression test for SF bug #478534 -- exceptions could "leak" into a weakrefFred Drake2001-12-101-0/+25
| | | | callback.
* Add a regression test for SF bug #478536: If a value cannot be weaklyFred Drake2001-11-061-1/+5
| | | | | referenced, WeakKeyDictionary.has_key() should return 0 instead of raising TypeError.
* Add a test for calling a weakref proxy with a dictionary of keyword args.Fred Drake2001-10-181-0/+3
|
* Make sure we do not core dump when using proxies with the binary slotFred Drake2001-10-181-0/+8
| | | | handlers. This was fixed in Objects/weakrefobject.c 1.2.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-3/+11
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Added tests for key deletion for both Weak*Dictionary flavors.Fred Drake2001-09-061-0/+22
| | | | This covers regression on SF bug #458860.
* Make sure that WeakValueDictionary[] raises KeyError instead of TypeErrorFred Drake2001-08-031-0/+5
| | | | for keys that are not in the dictionary.
* Extend the weakref test suite to cover the complete mapping interface forFred Drake2001-05-101-4/+61
| | | | | | both weakref.Weak*Dictionary classes. This closes SF bug #416480.
* Added tests for Weak*Dictionary iterator support.Fred Drake2001-05-021-10/+54
| | | | Refactored some object initialization to be more reusable.
* Add a test case for Weak*Dictionary.update() that would have caught aFred Drake2001-04-161-0/+25
| | | | recently reported bug; also exposed some other bugs in the implementation.
* Added regression test for SF bug #415660 (failure to invalidate allFred Drake2001-04-131-5/+24
| | | | | | references to an object before calling registered callbacks). Change last uses of verify() to self.assert_().
* Use the WeakKeyDictionary and WeakValueDictionary classes directlyFred Drake2001-04-101-2/+2
| | | | instead of using the mapping() function.
* Convert the weakref test suite to PyUNIT, and add tests that exercise weakFred Drake2001-03-231-236/+252
| | | | references on function objects and both bound and unbound methods.
* Add tests for the .copy() methods of both weak dictionary classes.Fred Drake2001-03-011-1/+15
|
* Patch #403985: Add support for weak-keyed dictionariesMartin v. Löwis2001-02-271-0/+18
|
* PEP 205, Weak References -- initial checkin.Fred Drake2001-02-011-0/+218