[Python-Dev] Proposal for Python 3.3: dependence injection
Benjamin Peterson
benjamin at python.org
Thu Mar 24 17:46:42 CET 2011
2011/3/24 Jesus Cea <jcea at jcea.es>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, everybody.
>
> I want to test the dev community interest in modifying the stdlib to
> ease dependence injection.
I, for one, am -1. Code shouldn't be uglified for the purposes of
testing. It's also a slippery slope. Maybe we should add parameters
for open() and io functions? What about sys and os? Those often need
to be mocked.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list