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:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tested 0.6.1 and all lokks clean 😃
Thank you.
https://github.com/isodate/isodate is a fork.