FutureWarning from unit tests
See original GitHub issueUnit tests pass but print out the following FutureWarning
:
test_relaxation (gpkit.tests.t_model.TestSP_cvxopt) ... gpkit/small_scripts.py:73: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
if sub[0] == "sweep":
ok
This has so far only been observed with the following setup:
- MacOSX 10.11.5 (ElCap)
- numpy 1.11.1
- not using anaconda
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to test with Python's unittest that a warning has been ...
I have a following function in Python and I want to test with unittest that if the function gets 0 as argument, it...
Read more >warnings from unit tests · Issue #183 · scverse/scvi-tools - GitHub
make test python3 setup.py test running pytest running egg_info writing scvi.egg-info/PKG-INFO writing dependency_links to ... warnings from unit tests #183.
Read more >How to capture warnings — pytest documentation
Starting from version 3.1 , pytest now automatically catches warnings during test execution and displays them at the end of the session:.
Read more >pandas.testing.assert_series_equal
pandas.testing.assert_series_equal# ... Check that left and right Series are equal. ... Specify comparison precision. Only used when check_exact is False. 5 digits ...
Read more >warnings — Warning control — Python 3.11.1 documentation
FutureWarning. Base category for warnings about deprecated features when those warnings are intended for end users of applications that are written in Python....
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
Not sure. But jenkins will error now if it shows up again.
So I guess we should check if that fixes it.