question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.6.0: pytest warnings

See original GitHub issue
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-isodate-0.6.0-8.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-isodate-0.6.0-8.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/isodate-0.6.0
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 18 items

src/isodate/tests/test_date.py .                                                                                                                                     [  5%]
src/isodate/tests/test_datetime.py .                                                                                                                                 [ 11%]
src/isodate/tests/test_duration.py ..........                                                                                                                        [ 66%]
src/isodate/tests/test_pickle.py ....                                                                                                                                [ 88%]
src/isodate/tests/test_strf.py .                                                                                                                                     [ 94%]
src/isodate/tests/test_time.py .                                                                                                                                     [100%]

============================================================================= warnings summary =============================================================================
src/isodate/tests/test_duration.py: 18 warnings
  /home/tkloczko/rpmbuild/BUILD/isodate-0.6.0/src/isodate/duration.py:183: DeprecationWarning: an integer is required (got type decimal.Decimal).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    newdt = other.replace(year=newyear, month=newmonth, day=newday)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 18 passed, 18 warnings in 0.12s ======================================================================

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kloczekcommented, Dec 12, 2021

Tested 0.6.1 and all lokks clean 😃

Thank you.

=========================================================================== 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=146938904
rootdir: /data/home/tkloczko/rpmbuild/BUILD/isodate-0.6.1
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 18 items

src/isodate/tests/test_date.py .                                                                                                                                     [  5%]
src/isodate/tests/test_datetime.py .                                                                                                                                 [ 11%]
src/isodate/tests/test_pickle.py ....                                                                                                                                [ 33%]
src/isodate/tests/test_strf.py .                                                                                                                                     [ 38%]
src/isodate/tests/test_time.py .                                                                                                                                     [ 44%]
src/isodate/tests/test_duration.py ..........                                                                                                                        [100%]

============================================================================ 18 passed in 0.49s ============================================================================
0reactions
hugovkcommented, Dec 9, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Warnings not captured during test collection #3251 - GitHub
The warnings docs clearly state that it captures warnings during test execution, but that means any warnings issued during test collection ...
Read more >
How to capture warnings — pytest documentation
Similar to Python's warning filter and -W option flag, pytest provides its own -W flag to control which warnings are ignored, displayed, or...
Read more >
pytest-notebook by example - Read the Docs
The principal component of pytest-notebook is the NBRegressionFixture class, ... %%pytest -v --color=yes --disable-warnings --nb-exec-timeout 50 ...
Read more >
pytest-tornasync - PyPI
py.test plugin for testing Python 3.5+ Tornado code. ... pytest-tornasync 0.6.0.post2 ... minor updates to avoid a pytest warning under pytest 4.
Read more >
Changelog - pytest_harvest
Integrating pytest-steps in default fixtures seemed like a bad idea because it led to automatic behaviour that could silently raise warnings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found