summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, andSerhiy Storchaka2013-12-081-1/+2
|\ | | | | | | test_statistics when python is run with -OO.
* \ Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-14/+15
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-5/+5
| |
* | Issue #19681: Apply a quick and minimal band-aid.Christian Heimes2013-11-221-1/+2
| | | | | | | | | | The flaky buildbots make it hard to detect real issue. This is just a temporary fix until we agree on a permanent solution.
* | Issue #4331: Added functools.partialmethodNick Coghlan2013-11-031-0/+116
| | | | | | | | Initial patch by Alon Horev
* | Close #10042: functools.total_ordering now handles NotImplementedNick Coghlan2013-10-011-7/+101
| | | | | | | | (Patch by Katie Miller)
* | Close issue 17482: don't overwrite __wrapped__Nick Coghlan2013-07-151-3/+11
| |
* | Issue #18244: Adopt C3-based linearization in functools.singledispatch for ↵Łukasz Langa2013-07-011-21/+153
| | | | | | | | improved ABC support
* | Fixed #18150: duplicate test inside TestSingleDispatchŁukasz Langa2013-06-071-19/+14
| | | | | | | | Thanks to Vajrasky Kok for the patch
* | Add reference implementation for PEP 443Łukasz Langa2013-06-051-3/+369
| | | | | | | | PEP accepted: http://mail.python.org/pipermail/python-dev/2013-June/126734.html
* | mergeRaymond Hettinger2013-03-041-0/+25
|\ \ | |/
| * Add test for RLock in the lru_cache().Raymond Hettinger2013-03-041-0/+25
| |
* | Issue #17122: Fix and cleanup test_functools.py.Serhiy Storchaka2013-02-051-50/+21
| |
* | Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-2/+20
|\ \ | |/ | | | | parses nested mutating sequence.
| * Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-0/+20
| |\ | | | | | | | | | parses nested mutating sequence.
| | * Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-0/+20
| | | | | | | | | | | | parses nested mutating sequence.
| * | Fix skip conditions in some docstings tests.Serhiy Storchaka2013-01-281-1/+1
| |\ \ | | |/
| | * Fix skip conditions in some docstings tests.Serhiy Storchaka2013-01-281-1/+1
| | |
* | | Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-0/+1
|\ \ \ | |/ / | | | | | | --without-doc-strings.
| * | Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-0/+1
| |\ \ | | |/ | | | | | | --without-doc-strings.
| | * Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-0/+1
| | | | | | | | | | | | --without-doc-strings.
* | | Fix whitespace.Antoine Pitrou2012-11-131-1/+1
| | |
* | | Issue #12428: Add a pure Python implementation of functools.partial().Antoine Pitrou2012-11-131-72/+136
|/ / | | | | | | Patch by Brian Thorne.
* | Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.Meador Inge2011-12-121-3/+9
| | | | | | | | Patch by Filip Gruszczyński.
* | Issue 13227: Option to make the lru_cache() type specific (suggested by ↵Raymond Hettinger2011-10-201-0/+16
| | | | | | | | Andrew Koenig).
* | MergeRaymond Hettinger2011-10-161-0/+16
|\ \ | |/
| * Issue 13177: Make tracebacks more readable by avoiding chained exceptions in ↵Raymond Hettinger2011-10-161-0/+16
| | | | | | | | the lru_cache.
* | Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.Raymond Hettinger2011-05-031-1/+3
|\ \ | |/
| * Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.Raymond Hettinger2011-05-031-1/+4
| |
* | Issue #11707: Fast C version of functools.cmp_to_key()Raymond Hettinger2011-04-051-1/+65
|/
* Issue #10042: Fixed the total_ordering decorator to handle cross-typeRaymond Hettinger2011-01-081-0/+24
| | | | comparisons that could lead to infinite recursion.
* Issue #4113: Added custom __repr__ method to functools.partial.Alexander Belopolsky2010-12-011-0/+29
|
* Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.Raymond Hettinger2010-12-011-0/+14
|
* Add example, tighten text, and minor clean-ups.Raymond Hettinger2010-11-301-8/+8
|
* Issue 10586: change the new functools.lru_cache implementation to expose the ↵Nick Coghlan2010-11-301-8/+36
| | | | maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-33/+33
|
* Adopt more descriptive attribute names as suggested on python-dev.Raymond Hettinger2010-09-041-9/+9
|
* run total_ordering() tests, and fix the function (default comparisons ↵Benjamin Peterson2010-08-231-1/+2
| | | | shouldn't be considered)
* Document and test the resolution of issue 3445 (tolerate missing attributes ↵Nick Coghlan2010-08-171-0/+29
| | | | in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper)
* Issue #665761: functools.reduce() will no longer mask exceptions otherAlexander Belopolsky2010-08-161-6/+19
| | | | | than TypeError raised by the iterator argument. Also added a test to check that zip() already behaves similarly.
* Remove the lfu_cache. Add more tests.Raymond Hettinger2010-08-151-50/+15
|
* Support cache sizes.Raymond Hettinger2010-08-141-0/+48
|
* Issue #8814: function annotations (the `__annotations__` attribute)Antoine Pitrou2010-08-041-2/+6
| | | | | are now included in the set of attributes copied by default by functools.wraps and functools.update_wrapper. Patch by Terrence Cole.
* Re-commit r83327 now that the release is done.Georg Brandl2010-07-311-1/+47
|
* Revert r83327. This will have to wait until after the alpha1 release.Georg Brandl2010-07-311-47/+1
|
* Add functools.lfu_cache() and functools.lru_cache().Raymond Hettinger2010-07-311-1/+47
|
* Merged revisions 79944 via svnmerge fromBenjamin Peterson2010-04-111-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79944 | benjamin.peterson | 2010-04-10 20:40:32 -0500 (Sat, 10 Apr 2010) | 1 line add test for class with no operations defined ........
* Forward port total_ordering() and cmp_to_key().Raymond Hettinger2010-04-051-1/+83
|
* Merged revisions ↵Georg Brandl2010-03-141-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78018 | georg.brandl | 2010-02-06 11:08:21 +0100 (Sa, 06 Feb 2010) | 1 line #7864: make deprecation notices a bit clearer. ........ r78035 | georg.brandl | 2010-02-06 23:44:17 +0100 (Sa, 06 Feb 2010) | 1 line Fix duplicate import. ........ r78036 | georg.brandl | 2010-02-06 23:49:47 +0100 (Sa, 06 Feb 2010) | 1 line Remove unused import. ........ r78037 | georg.brandl | 2010-02-06 23:59:15 +0100 (Sa, 06 Feb 2010) | 1 line No need to assign the results of expressions used only for side effects. ........ r78038 | georg.brandl | 2010-02-07 00:02:29 +0100 (So, 07 Feb 2010) | 1 line Add a missing import. ........ r78039 | georg.brandl | 2010-02-07 00:06:24 +0100 (So, 07 Feb 2010) | 1 line Add missing imports. ........ r78040 | georg.brandl | 2010-02-07 00:08:00 +0100 (So, 07 Feb 2010) | 1 line Fix a few UnboundLocalErrors in test_long. ........ r78042 | georg.brandl | 2010-02-07 00:12:12 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78043 | georg.brandl | 2010-02-07 00:12:19 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........ r78046 | georg.brandl | 2010-02-07 00:18:00 +0100 (So, 07 Feb 2010) | 1 line Fix various missing import/unbound name errors. ........ r78048 | georg.brandl | 2010-02-07 00:23:45 +0100 (So, 07 Feb 2010) | 1 line We heard you like test failures so we put unbound locals in your test so that you can fail while you fail. ........ r78049 | georg.brandl | 2010-02-07 00:33:33 +0100 (So, 07 Feb 2010) | 1 line Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed? ........ r78050 | georg.brandl | 2010-02-07 00:34:10 +0100 (So, 07 Feb 2010) | 1 line Fix more unbound locals in code paths that do not seem to be used. ........ r78051 | georg.brandl | 2010-02-07 00:53:52 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78052 | georg.brandl | 2010-02-07 00:54:04 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78054 | georg.brandl | 2010-02-07 00:58:25 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........ r78059 | georg.brandl | 2010-02-07 12:34:15 +0100 (So, 07 Feb 2010) | 1 line Use "regexp" consistently. ........ r78075 | georg.brandl | 2010-02-07 13:16:12 +0100 (So, 07 Feb 2010) | 1 line Fix another duplicated test method. ........ r78076 | georg.brandl | 2010-02-07 13:19:43 +0100 (So, 07 Feb 2010) | 1 line Fix wrong usage of "except X, Y:". ........ r78077 | georg.brandl | 2010-02-07 13:25:50 +0100 (So, 07 Feb 2010) | 1 line Fix two redefined test methods. ........ r78078 | georg.brandl | 2010-02-07 13:27:06 +0100 (So, 07 Feb 2010) | 1 line Fix a redefined test method. ........ r78079 | georg.brandl | 2010-02-07 13:34:26 +0100 (So, 07 Feb 2010) | 1 line Add a minimal test for fnmatchcase(). ........ r78080 | georg.brandl | 2010-02-07 13:55:12 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........
* Merged revisions 78351 via svnmerge fromR. David Murray2010-02-241-5/+23
| | | | | | | | | | | | | 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. ........