New submission from Brian Thorne <hardb...@gmail.com>: 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 ---------- components: Tests files: functools.diff keywords: patch messages: 139353 nosy: Thorney, ncoghlan, rhettinger priority: normal severity: normal status: open title: functools test coverage type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file22505/functools.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12428> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com