Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108724 > unrolled thread

Quote of the day

Started bySteven D'Aprano <steve+comp.lang.python@pearwood.info>
First post2016-05-17 17:50 +1000
Last post2016-05-18 17:59 -0700
Articles 4 on this page of 24 — 14 participants

Back to article view | Back to comp.lang.python


Contents

  Quote of the day Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-17 17:50 +1000
    Re: Quote of the day Radek Holý <Radek1@holych.org> - 2016-05-17 10:12 +0200
      Re: Quote of the day Marko Rauhamaa <marko@pacujo.net> - 2016-05-17 11:30 +0300
        Re: Quote of the day Sivan Greenberg <sivan@vitakka.co> - 2016-05-17 11:53 +0300
        Re: Quote of the day Paul Rudin <paul.nospam@rudin.co.uk> - 2016-05-17 10:54 +0100
          Re: Quote of the day Chris Angelico <rosuav@gmail.com> - 2016-05-17 20:48 +1000
          Re: Quote of the day Marko Rauhamaa <marko@pacujo.net> - 2016-05-17 15:21 +0300
            Re: Quote of the day wxjmfauth@gmail.com - 2016-05-17 06:15 -0700
              Re: Quote of the day wxjmfauth@gmail.com - 2016-05-18 23:50 -0700
            Re: Quote of the day Paul Rudin <paul.nospam@rudin.co.uk> - 2016-05-17 15:27 +0100
              Re: Quote of the day Michael Torrie <torriem@gmail.com> - 2016-05-17 13:42 -0600
                Re: Quote of the day Marko Rauhamaa <marko@pacujo.net> - 2016-05-17 23:21 +0300
        Re: Quote of the day Cem Karan <cfkaran2@gmail.com> - 2016-05-17 06:39 -0400
          Re: Quote of the day Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2016-05-18 14:05 +0200
            Re: Quote of the day Chris Angelico <rosuav@gmail.com> - 2016-05-18 22:32 +1000
            Re: Quote of the day Ned Batchelder <ned@nedbatchelder.com> - 2016-05-18 08:21 -0700
              Re: Quote of the day Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2016-05-18 17:35 +0200
                Re: Quote of the day Ned Batchelder <ned@nedbatchelder.com> - 2016-05-18 08:47 -0700
                Re: Quote of the day Ethan Furman <ethan@stoneleaf.us> - 2016-05-18 09:05 -0700
                  Re: Quote of the day Steven D'Aprano <steve@pearwood.info> - 2016-05-19 02:50 +1000
              Re: Quote of the day Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-19 10:52 +1200
                Re: Quote of the day Ethan Furman <ethan@stoneleaf.us> - 2016-05-18 16:30 -0700
                  Re: Quote of the day Steven D'Aprano <steve@pearwood.info> - 2016-05-19 10:43 +1000
                    Re: Quote of the day Ethan Furman <ethan@stoneleaf.us> - 2016-05-18 17:59 -0700

Page 2 of 2 — ← Prev page 1 [2]


#108789

FromGregory Ewing <greg.ewing@canterbury.ac.nz>
Date2016-05-19 10:52 +1200
Message-ID<dq4a0pFh8chU1@mid.individual.net>
In reply to#108763
Ned Batchelder wrote:
> I'm not sure how
> the test runner could determine that it was empty.  I guess it could
> introspect the test function to see if it had any real code in it,

Then people would just get clever at putting dummy code
in the test that fools the test runner but doesn't really
test anything...

-- 
Greg

[toc] | [prev] | [next] | [standalone]


#108791

FromEthan Furman <ethan@stoneleaf.us>
Date2016-05-18 16:30 -0700
Message-ID<mailman.23.1463614234.27390.python-list@python.org>
In reply to#108789
On 05/18/2016 03:52 PM, Gregory Ewing wrote:
> Ned Batchelder wrote:

>> I'm not sure how
>> the test runner could determine that it was empty.  I guess it could
>> introspect the test function to see if it had any real code in it,
>
> Then people would just get clever at putting dummy code
> in the test that fools the test runner but doesn't really
> test anything...

Some would have, sure.

Either way, it's a solved issue now because we (finally ;) have the 
@skip decorator.

--
~Ethan~

[toc] | [prev] | [next] | [standalone]


#108794

FromSteven D'Aprano <steve@pearwood.info>
Date2016-05-19 10:43 +1000
Message-ID<573d0c48$0$1595$c3e8da3$5496439d@news.astraweb.com>
In reply to#108791
On Thu, 19 May 2016 09:30 am, Ethan Furman wrote:

> On 05/18/2016 03:52 PM, Gregory Ewing wrote:
>> Ned Batchelder wrote:
> 
>>> I'm not sure how
>>> the test runner could determine that it was empty.  I guess it could
>>> introspect the test function to see if it had any real code in it,
>>
>> Then people would just get clever at putting dummy code
>> in the test that fools the test runner but doesn't really
>> test anything...
> 
> Some would have, sure.
> 
> Either way, it's a solved issue now because we (finally ;) have the
> @skip decorator.

That only solves the problem for responsible, decent developers.

But I guarantee you that, right now, as we speak, there is some poor schmuck
out there whose Pointy Haired Boss has given him a Key Performance
Indicator of X tests passing (not failing or skipped) per week, and he's
responding by writing tests which pass by not testing anything.



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#108797

FromEthan Furman <ethan@stoneleaf.us>
Date2016-05-18 17:59 -0700
Message-ID<mailman.25.1463619571.27390.python-list@python.org>
In reply to#108794
On 05/18/2016 05:43 PM, Steven D'Aprano wrote:
> On Thu, 19 May 2016 09:30 am, Ethan Furman wrote:
>
>> On 05/18/2016 03:52 PM, Gregory Ewing wrote:
>>> Ned Batchelder wrote:
>>
>>>> I'm not sure how
>>>> the test runner could determine that it was empty.  I guess it could
>>>> introspect the test function to see if it had any real code in it,
>>>
>>> Then people would just get clever at putting dummy code
>>> in the test that fools the test runner but doesn't really
>>> test anything...
>>
>> Some would have, sure.
>>
>> Either way, it's a solved issue now because we (finally ;) have the
>> @skip decorator.
>
> That only solves the problem for responsible, decent developers.

Since I'm not a manager (and when I was, I wasn't the PHB type), 
responsible, decent developers are where I focus my attention.

--
~Ethan~

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.python


csiph-web