python-hyper / hpack

HTTP/2 Header Encoding for Python
https://hpack.readthedocs.io/en/latest/
MIT License
72 stars 32 forks source link

4.0.0: pytest warnings #269

Closed kloczek closed 2 years ago

kloczek commented 3 years ago
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Using --randomly-seed=3860000547
rootdir: /home/tkloczko/rpmbuild/BUILD/hpack-4.0.0, configfile: setup.cfg, testpaths: test
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, randomly-3.8.0, pyfakefs-4.5.0, hypothesis-6.13.14
collected 499 items

test/test_table.py .................                                                                                                                                 [  3%]
test/test_struct.py .........                                                                                                                                        [  5%]
test/test_hpack_integration.py ..................................................................................................................................... [ 31%]
.................................................................................................................................................................... [ 64%]
.....................................................................................................................                                                [ 88%]
test/test_hpack.py ..........................................                                                                                                        [ 96%]
test/test_encode_decode.py ..............                                                                                                                            [ 99%]
test/test_huffman.py ...                                                                                                                                             [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/hypothesis/strategies/_internal/strategies.py:285
  /usr/lib/python3.8/site-packages/hypothesis/strategies/_internal/strategies.py:285: NonInteractiveExampleWarning: The `.example()` method is good for exploring strategies, but should only be used interactively.  We recommend using `@given` for tests - it performs better, saves and replays failures to avoid flakiness, and reports minimal examples. (strategy: text())
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 499 passed, 1 warning in 14.32s ======================================================================
Kriechi commented 3 years ago

Please use tox -e py38 and similar to get a correct environment with matching dependencies. Neither CI nor my local machine are showing this warning message.

Please let me know if this fixes the issue your are reporting.

kloczek commented 3 years ago

tox executes pytests in env of exact modules. In my case as you see I have installed many pytest extensions which sometimes exposes some issues. I suggest to have look carefully on that warming because it may point on real issue.