summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix whitespaceRaymond Hettinger2011-11-051-1/+1
|
* MergeRaymond Hettinger2011-11-051-0/+6
|\
| * Improve Counter.__repr__() to not fail with unorderable valuesRaymond Hettinger2011-11-051-0/+6
| |
* | Issue #13121: Support in-place math operators for collections.Counter().Raymond Hettinger2011-10-191-0/+21
| |
* | Add support for unary plus and unary minus to collections.Counter()Raymond Hettinger2011-08-091-0/+5
| |
* | mergeRaymond Hettinger2011-06-031-1/+1
|\ \ | |/
| * Fix named tuples to work with vars().Raymond Hettinger2011-06-031-1/+1
| |
| * Backport 3.3 fixes and cleans ups.Raymond Hettinger2011-05-021-11/+19
| |
| * TestChainMap was not previously used. Minor corrections applied.Łukasz Langa2011-04-291-8/+8
| |
* | Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
|\ \ | |/
| * Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
| |\
| | * Fix minor subclassing issue with collections.CounterRaymond Hettinger2011-04-151-0/+9
| | |
| | * Backport r87613 to make OrderedDict subclassing match dict subclassing.Raymond Hettinger2011-01-041-0/+28
| | |
| | * Merged revisions 86857 via svnmerge fromAlexander Belopolsky2010-11-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86857 | raymond.hettinger | 2010-11-28 22:56:12 -0500 (Sun, 28 Nov 2010) | 1 line Issue #10565: Iterator ABC should require both __next__ and __iter__. ........
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Issue #9826: Handle recursive repr in collections.OrderedDict.Raymond Hettinger2010-09-121-0/+7
| | |
| | * Merged revisions 84301 via svnmerge fromDaniel Stutzbach2010-08-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84301 | daniel.stutzbach | 2010-08-24 15:49:57 -0500 (Tue, 24 Aug 2010) | 1 line Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x ........
| | * Issue #9214: Fix set operations on KeysView and ItemsView.Raymond Hettinger2010-08-221-1/+26
| | |
| | * Merged revisions 82821 via svnmerge fromMark Dickinson2010-07-111-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82821 | mark.dickinson | 2010-07-11 19:53:06 +0100 (Sun, 11 Jul 2010) | 3 lines Issue #9137: Fix issue in MutableMapping.update, which incorrectly treated keyword arguments called 'self' or 'other' specially. ........
| | * Merged revisions 81417 via svnmerge fromBenjamin Peterson2010-05-211-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81417 | benjamin.peterson | 2010-05-21 15:55:22 -0500 (Fri, 21 May 2010) | 9 lines Merged revisions 81414 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81414 | benjamin.peterson | 2010-05-21 15:51:45 -0500 (Fri, 21 May 2010) | 1 line return NotImplemented from Mapping when comparing to a non-mapping #8729 ........ ................
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-72/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| * | Add tests for the collections helper class and sync-up with py3k branch.Raymond Hettinger2011-02-231-2/+112
| | |
* | | Remove test_importable(). Couldn't see how to make this reliable across all ↵Raymond Hettinger2011-03-241-25/+0
| | | | | | | | | | | | platforms.
* | | Isolate the test_source() test in test_collectionsRaymond Hettinger2011-03-241-5/+8
| | |
* | | Add tests for _source to importable and exec'able.Raymond Hettinger2011-03-241-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | Move __name__ back out of the template; the responsibility for setting __name__ lies with the caller (which knows something about the new namespace), not with the class definition (which doesn't know about the namespace it is being built in).
* | | Expose the namedtuple source with a _source attribute.Raymond Hettinger2011-03-231-0/+1
| | |
* | | Mentioned new clear() method of MutableSequence in its doc, and added unit ↵Eli Bendersky2011-03-041-0/+38
| | | | | | | | | | | | tests for its mixin methods
* | | Add __bool__ method. Add tests. Fix-up broken test.Raymond Hettinger2011-02-261-8/+14
| | |
* | | Issue #11297: Add collections.ChainMap()Raymond Hettinger2011-02-261-2/+2
| | |
* | | Add tests for the _ChainMap helper class.Raymond Hettinger2011-02-231-0/+110
| | |
* | | Fix imports from collections.abcRaymond Hettinger2011-02-231-8/+9
|/ /
* | Make C helper function more closely match the pure python version, and add ↵Raymond Hettinger2011-01-031-1/+14
| | | | | | | | tests.
* | Fix OrderedDic.pop() to work for subclasses that define __missing__().Raymond Hettinger2011-01-011-0/+15
| |
* | Make it easier to extend OrderedDict without breaking it.Raymond Hettinger2011-01-011-0/+8
| |
* | Fix OrderedDict.setdefault() to work for subclasses that define __missing__().Raymond Hettinger2010-12-311-0/+6
| |
* | Issue #10565: Iterator ABC should require both __next__ and __iter__.Raymond Hettinger2010-11-291-2/+8
| |
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-7/+7
| |
* | Issue 9865: add __sizeof__ to OrderedDict.Raymond Hettinger2010-09-161-0/+6
| |
* | Issue #9826: Handle recursive repr in collections.OrderedDict.Raymond Hettinger2010-09-121-0/+7
| |
* | Add method to OrderedDict for repositioning keys to the ends.Raymond Hettinger2010-09-061-1/+13
| |
* | Issue 8750: Fixed MutableSet's methods to correctly handle reflexive ↵Daniel Stutzbach2010-08-241-0/+15
| | | | | | | | operations, namely x -= x and x ^= x
* | Issue #9214: Fix set operations on KeysView and ItemsView.Raymond Hettinger2010-08-221-1/+26
| |
* | Issue #9507: Named tuple repr will now automatically display the rightRaymond Hettinger2010-08-081-0/+10
| | | | | | | | name in a tuple subclass.
* | Issue #9137: Fix issue in MutableMapping.update, which incorrectlyMark Dickinson2010-07-111-0/+13
| | | | | | | | treated keyword arguments called 'self' or 'other' specially.
* | Merged revisions 81414 via svnmerge fromBenjamin Peterson2010-05-211-1/+48
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81414 | benjamin.peterson | 2010-05-21 15:51:45 -0500 (Fri, 21 May 2010) | 1 line return NotImplemented from Mapping when comparing to a non-mapping #8729 ........
* | Add a subtract() method to collections.Counter()Raymond Hettinger2010-04-031-0/+10
| |
* | Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-1/+0
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* | Backport the tests only.Florent Xicluna2010-03-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | Merged revisions 78800 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78800 | florent.xicluna | 2010-03-08 16:20:28 +0100 (lun, 08 mar 2010) | 2 lines #7624: Fix isinstance(foo(), collections.Callable) for old-style classes. ........
* | Merged revisions 78351 via svnmerge fromR. David Murray2010-02-241-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78351 | r.david.murray | 2010-02-22 19:24:49 -0500 (Mon, 22 Feb 2010) | 5 lines Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch. ........
* | Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-27/+27
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........