This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Thorney
Recipients Thorney, ncoghlan, rhettinger
Date 2011-06-28.10:07:16
SpamBayes Score 0.000136356
Marked as misclassified No
Message-id <1309255638.21.0.342456839611.issue12428@psf.upfronthosting.co.za>
In-reply-to
Content
The test coverage for functools was down around ~60%, this is a patch to bring that up to ~98%.

Made two changes to the Lib/functools.py file itself:

1) Moved the Python implementation of partial into Lib/functools.py from Lib/test/test_functools.py which gets imported over the same as the Python implementation of cmp_to_key.

2) In order to allow the blocking of _functools, I grouped and moved the import functions from of _functools to the end of the file.

In the test_functools.py file:

3) Added two new tests to TestLRU.

4) Add testing of Python implementation of cmp_to_key. I copied how test_warnings.py tests C and Python implementations of the same function.

5) Made the importing of functools itself far less clear
History
Date User Action Args
2011-06-28 10:07:18Thorneysetrecipients: + Thorney, rhettinger, ncoghlan
2011-06-28 10:07:18Thorneysetmessageid: <1309255638.21.0.342456839611.issue12428@psf.upfronthosting.co.za>
2011-06-28 10:07:17Thorneylinkissue12428 messages
2011-06-28 10:07:17Thorneycreate