[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

sedrubal report at bugs.python.org
Sun Jul 9 17:07:18 EDT 2017


sedrubal added the comment:

What is the problem with using the patch by moritz (https://bugs.python.org/issue14156#msg162342) and change the unit test to this:


class TestFileTypeWB(TempDirMixin, ParserTestCase):
    ...
    successes = [
        ...,
        ('-x - -', NS(x=sys.stdout.buffer, spam=sys.stdout.buffer)),
    ]


and respectively for stdin?

----------
nosy: +sedrubal

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


More information about the Python-bugs-list mailing list