Éric Araujo <mer...@netwok.org> added the comment:

The best way is to learn by imitation.  If you prefer to read, there is some 
guidance on http://www.python.org/dev/workflow/ and 
http://www.python.org/dev/faq/#how-to-test-a-patch .

Concretely, you need to open a file, wrap it in a _PaddedFile and check that 
attributes like name and closed are good (using assertEqual).

You’ll also want to follow patch guidelines at 
http://www.python.org/dev/patches/

----------

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

Reply via email to