summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28969: Fixed race condition in C implementation of functools.lru_cache.Serhiy Storchaka2017-01-121-0/+15
|\ | | | | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments.
| * Issue #28969: Fixed race condition in C implementation of functools.lru_cache.Serhiy Storchaka2017-01-121-0/+15
| |\ | | | | | | | | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments.
| | * Issue #28969: Fixed race condition in C implementation of functools.lru_cache.Serhiy Storchaka2017-01-121-0/+15
| | | | | | | | | | | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments.
* | | Add test for ea064ff3c10fRaymond Hettinger2017-01-091-0/+9
| | |
* | | mergeRaymond Hettinger2017-01-091-0/+10
|\ \ \ | |/ /
| * | Issue #29203: functools.lru_cache() now respects PEP 468Raymond Hettinger2017-01-091-0/+10
| | |
* | | Issue #29200: Fix test to use self.assertEqual instead of py.test style testsRaymond Hettinger2017-01-081-12/+12
| | |
* | | Issue #29200: Add test for lru cache only calling __hash__ onceRaymond Hettinger2017-01-081-0/+36
|/ /
* | mergeRaymond Hettinger2016-12-161-0/+13
|\ \ | |/
| * Issue #28991: Fix obscure reentrancy bug in functools.lru_cache().Raymond Hettinger2016-12-161-0/+13
| |
* | Issue #26939: Add the support.setswitchinterval() function to fixXavier de Gaye2016-12-081-1/+1
| | | | | | | | test_functools hanging on the Android armv7 qemu emulator.
* | Merge 3.6 (issue #28653)Yury Selivanov2016-11-091-0/+19
|\ \ | |/
| * Issue #28653: Fix a refleak in functools.lru_cache.Yury Selivanov2016-11-091-0/+19
| |
* | Extend the test to lower pickle protocols.Serhiy Storchaka2016-09-221-1/+1
|\ \ | |/
| * Extend the test to lower pickle protocols.Serhiy Storchaka2016-09-221-1/+1
| |
* | Issue #27137: align Python & C implementations of functools.partialNick Coghlan2016-09-101-74/+101
| | | | | | | | | | | | | | | | The pure Python fallback implementation of functools.partial now matches the behaviour of its accelerated C counterpart for subclassing, pickling and text representation purposes. Patch by Emanuel Barry and Serhiy Storchaka.
* | Issue 27598: Add Collections to collections.abc.Guido van Rossum2016-08-231-7/+10
| | | | | | | | Patch by Ivan Levkivskyi, docs by Neil Girdhar.
* | Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-141-12/+21
| |
* | Issue #25455: Clean up reference loops created in tests for recursiveSerhiy Storchaka2016-06-121-12/+36
|\ \ | |/ | | | | functools.partial objects.
| * Issue #25455: Clean up reference loops created in tests for recursiveSerhiy Storchaka2016-06-121-12/+36
| | | | | | | | functools.partial objects.
* | Issue #25455: Fixed a crash in repr of recursive functools.partial objects.Serhiy Storchaka2016-06-121-0/+37
|\ \ | |/
| * Issue #25455: Fixed a crash in repr of recursive functools.partial objects.Serhiy Storchaka2016-06-121-0/+37
| |
* | Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-21/+12
| |
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-1/+1
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Add collections.Reversible. Patch by Ivan Levkivskyi. Fixes issue #25987.Guido van Rossum2016-04-041-1/+1
|/
* Issue #25945: Fixed bugs in functools.partial.Serhiy Storchaka2016-02-021-6/+87
| | | | | | | Fixed a crash when unpickle the functools.partial object with wrong state. Fixed a leak in failed functools.partial constructor. "args" and "keywords" attributes of functools.partial have now always types tuple and dict correspondingly.
* Issue #25447: Copying the lru_cache() wrapper object now always works,Serhiy Storchaka2015-12-281-2/+12
| | | | | independedly from the type of the wrapped object (by returning the original object unchanged).
* Issue #25447: The lru_cache() wrapper objects now can be copied and pickledSerhiy Storchaka2015-10-241-2/+56
| | | | (by returning the original object unchanged).
* Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial callsBerker Peksag2015-09-221-3/+15
| | | | | Also, properly skip the test_nested_optimization test for partial subclasses and add a test for the suggested usage.
* Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.Yury Selivanov2015-08-181-0/+18
| | | | Patch by Ethan Furman.
* Issue #14373: Other attempt to fix threaded test for lru_cache().Serhiy Storchaka2015-06-081-6/+11
|
* Issue #14373: C implementation of functools.lru_cache() now can be used withSerhiy Storchaka2015-06-081-0/+31
| | | | methods.
* Issue #14373: Fixed threaded test for lru_cache(). Added new threaded test.Serhiy Storchaka2015-06-081-14/+47
|
* Use test.support.start_threads() in threaded lru_cache tests.Serhiy Storchaka2015-05-301-18/+9
|
* Backed out changeset: b0a0b9b59012Serhiy Storchaka2015-05-241-17/+92
|
* Backed out changeset 57776eee74f2Larry Hastings2015-05-231-92/+17
|
* Issue #14373: Added C implementation of functools.lru_cache(). Based onSerhiy Storchaka2015-05-231-17/+92
| | | | patches by Matt Joiner and Alexey Kachayev.
* merge 3.4Benjamin Peterson2015-05-091-0/+2
|\
| * ensure .keywords is always a dictBenjamin Peterson2015-05-091-0/+2
| |
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-28/+1
| | | | | | | | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* | Issue #7830: Flatten nested functools.partial.Alexander Belopolsky2015-03-011-0/+10
| |
* | Issue #19681: Test the repr of partial with more than one keyword argument.Serhiy Storchaka2015-02-151-7/+9
|\ \ | |/
| * Issue #19681: Test the repr of partial with more than one keyword argument.Serhiy Storchaka2015-02-151-7/+9
| |
* | Issue #23132: Improve performance and introspection support of comparisonSerhiy Storchaka2015-01-011-0/+18
|/ | | | methods created by functool.total_ordering.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-2/+3
|
* Issue 22184: Early detection and reporting of missing lru_cache parametersRaymond Hettinger2014-08-121-0/+7
|
* 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
| |