Open
Description
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hyperlink-21.0.0-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hyperlink-21.0.0-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/hyperlink-21.0.0, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0
collected 113 items
src/hyperlink/test/test_common.py ...... [ 5%]
src/hyperlink/test/test_decoded_url.py ............ [ 15%]
src/hyperlink/test/test_hypothesis.py ......F....... [ 28%]
src/hyperlink/test/test_parse.py . [ 29%]
src/hyperlink/test/test_scheme_registration.py ....... [ 35%]
src/hyperlink/test/test_url.py ......................................................................... [100%]
================================================================================= FAILURES =================================================================================
___________________________________________________________ TestHypothesisStrategies.test_hostnames_ascii_nolead ___________________________________________________________
self = <hyperlink.test.test_hypothesis.TestHypothesisStrategies testMethod=test_hostnames_ascii_nolead>
@given(hostnames(allow_leading_digit=False, allow_idn=False))
> def test_hostnames_ascii_nolead(self, hostname):
E hypothesis.errors.FailedHealthCheck: It looks like your strategy is filtering out a lot of data. Health check found 50 filtered examples but only 8 good ones. This will make your tests much slower, and also will probably distort the data generation quite a lot. You should adapt your strategy to filter less. This can also be caused by a low max_leaves parameter in recursive() calls
E 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.filter_too_much to the suppress_health_check settings for this test.
src/hyperlink/test/test_hypothesis.py:177: FailedHealthCheck
-------------------------------------------------------------------------------- Hypothesis --------------------------------------------------------------------------------
You can add @seed(316402225955689492760055034870421002781) to this test or run pytest with --hypothesis-seed=316402225955689492760055034870421002781 to reproduce this failure.
========================================================================= short test summary info ==========================================================================
FAILED src/hyperlink/test/test_hypothesis.py::TestHypothesisStrategies::test_hostnames_ascii_nolead - hypothesis.errors.FailedHealthCheck: It looks like your strategy is...
====================================================================== 1 failed, 112 passed in 27.97s ======================================================================
Metadata
Metadata
Assignees
Labels
No labels