sloria / sphinx-issues

A Sphinx extension for linking to your project's issue tracker
MIT License
54 stars 12 forks source link

1.2.0: pytest warnings #115

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=2072129174
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-issues-1.2.0
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 22 items

test_sphinx_issues.py ..................                                                                                                                             [ 85%]
. .                                                                                                                                                                  [ 90%]
test_sphinx_issues.py ..                                                                                                                                             [100%]

============================================================================= warnings summary =============================================================================
test_sphinx_issues.py:23
  /home/tkloczko/rpmbuild/BUILD/sphinx-issues-1.2.0/test_sphinx_issues.py:23: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
  Use @pytest.fixture instead; they are the same.
    @pytest.yield_fixture(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 21 passed, 1 warning in 7.52s =======================================================================
hugovk commented 2 years ago

Please see PR https://github.com/sloria/sphinx-issues/pull/117.

kloczek commented 2 years ago

Wit that PR pytest output is now celan.

+ PYTHONPATH=/data/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-issues-1.2.0-11.fc35.x86_64/usr/lib64/python3.8/site-packages:/data/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-issues-1.2.0-11.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=2571616074
rootdir: /data/home/tkloczko/rpmbuild/BUILD/sphinx-issues-1.2.0
plugins: shutil-1.7.0, virtualenv-1.7.0, mock-3.6.1, cov-2.12.1, anyio-3.3.4, flaky-3.7.0, tornasync-0.6.0.post2, console-scripts-1.2.0, trio-0.7.0, timeout-2.0.1, asyncio-0.16.0, freezegun-0.4.2, flake8-1.0.7, pyfakefs-4.5.3, benchmark-3.4.1, profiling-1.7.0, datadir-1.3.1, regressions-2.2.0, randomly-3.8.0, rerunfailures-9.1.1, yagot-0.5.0, requests-mock-1.9.3, subtests-0.5.0, easy-server-0.8.0, django-4.5.2, forked-1.4.0, ordering-0.6, xdist-2.5.0, hypothesis-6.31.4
collected 20 items

test_sphinx_issues.py ....................                                                                                                                           [100%]

============================================================================ 20 passed in 2.77s ============================================================================

Thank you :)