[issue11175] allow argparse FileType to accept encoding and errors arguments

Lucas Maystre report at bugs.python.org
Fri Oct 26 17:11:45 CEST 2012


Lucas Maystre added the comment:

Alright, here's a version with more tests (unittest.mock is awesome!). I think it tests exactly what it should (and no more), i.e. that the arguments are correctly passed to `open`.

----------
Added file: http://bugs.python.org/file27729/filetype11175.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11175>
_______________________________________


More information about the Python-bugs-list mailing list