summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict.py
Commit message (Collapse)AuthorAgeFilesLines
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-29/+29
|
* Issue #4688: Add a heuristic so that tuples and dicts containing onlyAntoine Pitrou2009-03-231-0/+98
| | | | | | | | | untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster)
* fill in actual issue number in testsAntoine Pitrou2009-01-011-1/+1
|
* Issue #3680: Reference cycles created through a dict, set or deque iterator ↵Antoine Pitrou2009-01-011-0/+14
| | | | did not get collected.
* - Issue #3537: Fix an assertion failure when an empty but presized dictGeorg Brandl2008-08-111-0/+11
| | | | object was stored in the freelist.
* Speed up test_dict by about 10x by only checking selected dict literal sizes,Jeffrey Yasskin2008-03-181-4/+6
| | | | | instead of every integer from 0 to 400. Exhaustive testing wastes time without providing enough more assurance that the code is correct.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Changes 54857 and 54840 broke code and were reverted in Py2.5 just beforeRaymond Hettinger2008-01-251-8/+0
| | | | it was released, but that reversion never made it to the Py2.6 head.
* Beef-up tests for dict literalsRaymond Hettinger2007-12-191-1/+10
|
* Backport of _abccoll.py by Benjamin Arangueren, issue 1383.Guido van Rossum2007-11-221-0/+4
| | | | With some changes of my own thrown in (e.g. backport of r58107).
* Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset ↵Raymond Hettinger2007-11-071-0/+4
| | | | counts for example.
* Whitespace normalization.Tim Peters2007-03-121-5/+5
|
* Patch #1678088: convert test_operations to use unittest, fold the result ↵Collin Winter2007-03-121-0/+71
| | | | into test_dict.
* Fix a bug in test_dict and test_userdict, found at the PyPy sprint.Georg Brandl2007-03-041-3/+3
|
* SF #1615701: make d.update(m) honor __getitem__() and keys() in dict subclassesRaymond Hettinger2007-02-071-0/+8
|
* Bug #1576657: when setting a KeyError for a tuple key, make sure thatGeorg Brandl2006-10-291-0/+10
| | | | the tuple isn't used as the "exception arguments tuple".
* Use absolute importsNeal Norwitz2006-04-031-1/+1
|
* - Patch 1433928:Guido van Rossum2006-02-251-0/+50
| | | | | | | | - The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above).
* Expand scope to include general mapping protocol tests.Raymond Hettinger2004-09-301-0/+13
| | | | | | Many of these tests are redundant, but this will ensure that the mapping protocols all stay in sync. Also, added a test for dictionary subclasses.
* Add missing test_dict.py from patch #736962.Walter Dörwald2004-09-301-0/+404