mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Drop netifaces (replaced by psutil). Fixes #344.
This commit is contained in:
1 parent
6fbc84c0dc
commit
c3e99bfc1d
7 files changed
+18
-30
No files matched your search
@@ -16,7 +16,6 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import netifaces
|
||||
|
||||
from gns3server.utils.interfaces import interfaces, is_interface_up
|
||||
|
||||
@@ -28,7 +27,8 @@ def test_interfaces():
|
||||
|
||||
def test_is_interface_up():
|
||||
if sys.platform.startswith("win"):
|
||||
assert is_interface_up(netifaces.interfaces[0]) is True
|
||||
# is_interface_up() always returns True on Windows
|
||||
pass
|
||||
elif sys.platform.startswith("darwin"):
|
||||
assert is_interface_up("lo0") is True
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user