[Python-apps-team] Bug#844081: Reproducer

Adrian Bunk bunk at stusta.de
Wed Nov 23 16:54:30 UTC 2016


Control: severity -1 serious
Control: tags -1 -moreinfo

On Sun, Nov 20, 2016 at 10:03:04AM +0100, Filip Pytloun wrote:
>...
> Unfortunately running tests during build is always fragile and it seems
> that what's working in one environment may be FTBFS for anyone else :-(
>...

Running tests during build is only fragile when the tests
(or the code they test) are crap.

A non-buggy test never fails unless the code it tests is buggy,
and many software projects have thousands of tests that work fine.

A testsuite that sometimes fails for no good reason is quite useless.


        coll.update_db()
        sleep(0.01)
>       assert len(list(coll.get_events_on(today))) == 1
E       assert 0 == 1

Are these operations on coll intentionally asynchronous?

If yes, is there any way to wait until the update_db() was successful?

If no, please at least enlarge the sleep time by a factor of 10 to 
ensure that this won't be observed by anyone in practice.
 

> Filip

Thanks
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Python-apps-team mailing list