Benjamin Peterson
9d0eaac1fc
enable and fix TestTotalOrdering
2010-08-23 17:45:31 +00:00
Benjamin Peterson
a11da59755
add test for class with no operations defined
2010-04-11 01:40:32 +00:00
Raymond Hettinger
e1d665a90e
Classes that override __eq__ also need to define __hash__.
2010-04-05 18:53:43 +00:00
Raymond Hettinger
06bc0b6d2e
Add tests for functools.total_ordering.
2010-04-04 22:24:03 +00:00
Raymond Hettinger
bb006cf26c
Add tests for cmp_to_key.
...
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
R. David Murray
f28fd24c36
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.
2010-02-23 00:24:49 +00:00
Georg Brandl
a34f87f981
Fix a redefined test method.
2010-02-07 12:27:06 +00:00
Ezio Melotti
dde5b94875
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
2010-02-03 05:37:26 +00:00
Senthil Kumaran
ce8e33a095
Reverting the Revision: 77368. I committed Flox's big patch for tests by
...
mistake. ( It may come in for sure tough)
2010-01-08 19:04:16 +00:00
Senthil Kumaran
3ddc435af6
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
2010-01-08 18:41:40 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Jack Diederich
d60c29ed8b
#5228 : add pickle support to functools.partial
2009-03-31 23:46:48 +00:00
Brett Cannon
83e818415a
Copy reduce() to _functools so to have functools.reduce() not raise a warning
...
from usage under -3.
2008-08-09 23:30:55 +00:00
Andrew M. Kuchling
41eb7164df
[Bug #1576241 ] Let functools.wraps work with built-in functions
2006-10-27 16:39:10 +00:00
Nick Coghlan
676725db92
Add functools.update_wrapper() and functools.wraps() as described in PEP 356
2006-06-08 13:54:49 +00:00
Nick Coghlan
c649ec5b69
Apply modified version of Collin Winter's patch #1478788
...
Renames functional extension module to _functools and adds a Python
functools module so that utility functions like update_wrapper can be
added easily.
2006-05-29 12:43:05 +00:00