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.

FutureWarning from unit tests

See original GitHub issue

Unit 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
galbramccommented, Dec 4, 2016

Not sure. But jenkins will error now if it shows up again.

1reaction
bqpdcommented, Sep 8, 2016

So I guess we should check if that fixes it.

Read more comments on GitHub >

github_iconTop 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 >

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