DeprecationWarnings when pytest fails
See original GitHub issueWhen running tests you get a lot of these messages:
PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
It should be easily fixable!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to capture warnings — pytest documentation
By default pytest will display DeprecationWarning and PendingDeprecationWarning warnings from user code and third-party libraries, as recommended by PEP 565.
Read more >How to suppress py.test internal deprecation warnings
It seems that pytest completely removes filters, because it shows all those DeprecationWarning when running, and Python's documentation ...
Read more >Tests fail with python 3.10 due to "DeprecationWarning: The ...
LC_ALL=C.UTF-8 python -m ase test --verbose About to run pytest with these parameters: -v --capture=no ImportError while loading conftest ...
Read more >Pytest treating warning as exception - Running Tests
I'm running pytest with: python -m pytest tests/ -vv -rsx However, it is treating warnings as errors: ERROR collecting ...
Read more >warnings — Warning control — Python 3.11.1 documentation
Changed in version 3.7: Previously DeprecationWarning and FutureWarning were ... to turn a warning into an error we simply raise category(message) .
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 FreeTop 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
Top GitHub Comments
Deprecation messages
np.float
is a deprecated alias for the builtinfloat
. To silence this warning, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.Ok, we can leave this open.
One PR has created today 😃 #2799