[issue41877] Check against misspellings of assert etc. in mock

Terry J. Reedy report at bugs.python.org
Fri Oct 2 19:43:15 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Vedran, you explained why many use pytest instead of unittest. But we have the latter and a stability policy.

I am not familiar with the existing mock code, but one already invented solution for misspelling tolerance without enumeration is the soundex algorithm.  I have not read the details for over a decade, but I belive soundex(<assert variation>) = 'asrt' for all examples given here.  Perhaps it could be used to broaden the test.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41877>
_______________________________________


More information about the Python-bugs-list mailing list