Improve network traffic module tests

This commit is contained in:
Thaynã Moretti 2020-09-01 22:12:54 -03:00
parent 1b66e17780
commit 032a651efa
2 changed files with 12 additions and 3 deletions

View file

@ -97,9 +97,6 @@ class BandwidthInfo(object):
"""Return default active network adapter"""
gateway = netifaces.gateways()["default"]
if not gateway:
raise "No default gateway found"
return gateway[netifaces.AF_INET][1]
@classmethod