[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files
Petri Lehtinen
report at bugs.python.org
Thu Aug 11 19:46:33 CEST 2011
Petri Lehtinen <petri at digip.org> added the comment:
Éric Araujo wrote:
> Petri: these helper functions are all about convenienve. I would
> reject a patch for a function just doing open+read, but here I think
> that doing os.path.join+open+read is worth a function. We use such
> helpers all the time in packaging tests and it helps reducing
> boilerplate, without being very hard to understand.
Ok, sounds reasonable.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12721>
_______________________________________
More information about the Python-bugs-list
mailing list