summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-09-26 14:34:36 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-09-26 14:34:36 +0200
commit382ff80d678b365c37590c2f1909d98dd0b28cdc (patch)
treefa33a2f007313df7cba8bdb098cdae791a80f5ca
parent182af70b78c30a5898ecc11d467623a4ba76dccb (diff)
downloadpsutil-382ff80d678b365c37590c2f1909d98dd0b28cdc.tar.gz
fix test
-rw-r--r--psutil/tests/test_system.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 1cfe4f55..53f10fd4 100644
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -563,7 +563,7 @@ class TestSystemAPIs(unittest.TestCase):
for addr in addrs:
self.assertIsInstance(addr.family, int)
self.assertIsInstance(addr.address, str)
- self.assertIsInstance(addr.netmask, str)
+ self.assertIsInstance(addr.netmask, (str, type(None)))
self.assertIsInstance(addr.broadcast, (str, type(None)))
self.assertIn(addr.family, families)
if sys.version_info >= (3, 4):