[Python-Dev] Contents of test_bool (original) (raw)
Guido van Rossum guido at python.org
Wed Mar 21 21:50:14 CET 2007
- Previous message: [Python-Dev] Contents of test_bool
- Next message: [Python-Dev] Contents of test_bool
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think it was just expedient to group these together when the bool type was added. I wouldn't lose sleep over it either way.
On 3/21/07, Collin Winter <collinw at gmail.com> wrote:
Is there any reason for testbool to contain assertions like these?
self.assertIs({}.haskey(1), False) self.assertIs({1:1}.haskey(1), True) A significant portion of the file is devoted to making sure various things return bools (isinstance, operator.*) or handle bools correctly (pickle, marshal). Since these don't test the functionality of the bool type, is there a reason not to move these tests to more appropriate test files (eg, testpickle) or removing them altogether (if they duplicate existing tests)? I've started on this somewhat, but I thought I'd ask before I spent too much time on it. Collin Winter
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Contents of test_bool
- Next message: [Python-Dev] Contents of test_bool
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]