Quote of the day

Chris Angelico rosuav at gmail.com
Wed May 18 08:32:21 EDT 2016


On Wed, May 18, 2016 at 10:05 PM, Thomas Mlynarczyk
<thomas at mlynarczyk-webdesign.de> wrote:
> On 17/05/16 12:39, Cem Karan wrote:
>> Just downloaded and used a library that came with unit tests, which all passed.
>> [...]
>> I discovered they had commented out the bodies of some of the unit
> tests...
>
> Shouldn't the unit test framework have those "empty" tests reported as
> "todo"/"incomplete" or whatever? (I know that PHPUnit reports such tests
> as "passed" which I find utterly wrong.)

In Python, the unittest framework allows you to 'skip' tests for any
reason. That would be the best.

ChrisA



More information about the Python-list mailing list