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

Vedran Čačić report at bugs.python.org
Mon Sep 28 14:41:04 EDT 2020


Vedran Čačić <vedgar at gmail.com> added the comment:

How about we actually _solve_ the problem, instead of masking it with layer upon layer of obfuscation?

Python has standalone functions. assert_called (and company) should just be functions, they shouldn't be methods, and the problem is solved elegantly. The whole reason the problem exists in the first place is that Java, where Python copied the API from, has no standalone functions. In Pythonic design, the problem shouldn't exist at all.

----------
nosy: +veky

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


More information about the Python-bugs-list mailing list