Control: severity -1 normal

<#secure method=pgpmime mode=sign>
 ❦  4 février 2017 09:25 +1300, Chris Lamb <la...@debian.org> :

>   […]
>   
>   ======================================================================
>   ERROR: test_never_crashes (tests.test_check.TestDetectionProperties)
>   ----------------------------------------------------------------------
>   Traceback (most recent call last):
>     File "«BUILDDIR»/tests/test_check.py", line 180, in test_never_crashes
>       def test_never_crashes(self, data):
>     File "/usr/lib/python2.7/dist-packages/hypothesis/core.py", line 438, in 
> wrapped_test
>       HealthCheck.too_slow,
>     File "/usr/lib/python2.7/dist-packages/hypothesis/core.py", line 306, in 
> fail_health_check
>       raise FailedHealthCheck(message)
>   FailedHealthCheck: Data generation is extremely slow: Only produced 10 
> valid examples in 0.33 seconds (0 invalid ones and 1 exceeded maximum size). 
> Try decreasing size of the data you're generating (with e.g.average_size or 
> max_leaves parameters).
>   See https://hypothesis.readthedocs.io/en/latest/healthchecks.html for more 
> information about this. If you want to disable just this health check, add 
> HealthCheck.too_slow to the suppress_health_check settings for this test.
>   
>   ----------------------------------------------------------------------
>   Ran 43 tests in 0.557s

I have slowed down my own machine in a such ways tests are now taking 6s
to execute. I cannot reproduce this. I need to slow it down such that
tests take 20s to get this error (and it says 10 valid examples in 1.30
seconds and the test suite took 2.9s). Runing the tests in a loop
without CPU limitation (tests run in 1.88 seconds) doesn't trigger the
bug.

I don't intend disabling this test which seems important because there
is not enough CPU to run the test (even if this is not a timing-related
test). Like for memory and disk, I understand that test suites have some
expectation on how much CPU the environment should provide (otherwise,
we have to disable all timing related tests).
-- 
"You have been in Afghanistan, I perceive."
                -- Sir Arthur Conan Doyle, "A Study in Scarlet"

Reply via email to