[TIP] Unittest Changes

Michael Foord fuzzyman at voidspace.org.uk
Mon Jul 21 00:58:02 PDT 2008


Ben Finney wrote:
> Michael Foord <fuzzyman at voidspace.org.uk> writes:
>
>   
>> The original intention was to PEP-8'ify and slim down the
>> duplication between 'fail*' and 'assert*' methods in the API. This
>> caused a great deal of controversy, and Guido ruled that these parts
>> of the proposed changes should not be acted on - but some new
>> features could be added, following only the 'assert*' naming pattern
>> for new test methods.
>>     
>
> I would also interpret the pronouncement as permitting PEP 8
> conformance for any *new* names in the API. I'd certainly hope to
> never have another non-PEP-8 name added in any standard library
> module.
>
>   
For new functions / classes that is probably true. For new assertions he 
was explicit that they should follow the current 'assertCamel' style.

Michael

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://wwww.theotherdelia.co.uk/




More information about the testing-in-python mailing list