Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when Ethernet cord is disconnected, succeeds when cord is connected #612

Closed
matt18224 opened this issue Mar 30, 2015 · 1 comment
Labels

Comments

@matt18224
Copy link

When compiling on my laptop running Ubuntu 14.10, if an active Ethernet connection is present, psutil compiles successfully, but if the cord is not connected, then compilation fails with the following error:

======================================================================
FAIL: test_net_if_names_2 (_linux.LinuxSpecificTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/matt/git/psutil/test/_linux.py", line 234, in test_net_if_names_2
    sorted(psutil.net_if_addrs()))
AssertionError: Lists differ: ['lo', 'tun0', 'wlan0'] != ['eth0', 'lo', 'tun0', 'wlan0'...

First differing element 0:
lo
eth0

Second list contains 1 additional elements.
First extra element 3:
wlan0

- ['lo', 'tun0', 'wlan0']
+ ['eth0', 'lo', 'tun0', 'wlan0']
?  ++++++++


----------------------------------------------------------------------
Ran 189 tests in 5.218s

FAILED (failures=1, skipped=54)
Makefile:41: recipe for target 'test' failed
make: *** [test] Error 1
@giampaolo
Copy link
Owner

Mmmm that means the test is unreliable. I never liked it anyway so I just removed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants