Ezio Melotti <ezio.melo...@gmail.com> added the comment:

It's not really a waste of time, since it's just a find and replace and I 
already have a patch ready. I also believe that there are valid reasons to do 
it.

When I started learning about unittest, I clearly remember asking myself if I 
should have used "assertEqual" or "assertEquals" and thought that two different 
methods with two different names probably did two different things (TMBOOWTDI). 
 I also remember thinking that "assertEquals" must have been a "plural" version 
of "assertEqual" able to accept more than two argument at once (i.e. 
assertEquals(a, b, c, d) -> a == b == c == d).

I can imagine people finding it in some code (possibly in the Python test 
suite), thinking that is a typo, being confused because the documentation 
doesn't mention it, wonder how the test can pass if they use a "ghost" method, 
asking themselves if the code is really executed and so on.

Since we are moving away from these methods, it's annoying seeing people using 
them and reintroduce them in the Python test suite and that wastes time during 
the commit reviews for the reviewer and for the committer that has to fix it 
and merge the fix.

This said, it could be enforced both in regrtest or with a commit hook.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9424>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to