Steven Bethard <steven.beth...@gmail.com> added the comment:

The fix looks right, but we definitely need a test. I tried to write one, but 
I'm not sure how to do this properly given how test_argparse redirects standard 
input and output (so that fileno() doesn't work anymore). I've attached my 
current (failing) attempt to test this.

----------
Added file: http://bugs.python.org/file26484/14156.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14156>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to