summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ipaddress.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-08-05 12:45:22 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-08-05 12:45:22 (GMT)
commite3ded955f3b145e38be47be61c53ba1ff130f47b (patch)
treee6e00295546d9b6d363789733e20ee2d754c9031 /Lib/test/test_ipaddress.py
parent7362c3efeb49f6656819a0842f9e5fe358d390da (diff)
downloadcpython-e3ded955f3b145e38be47be61c53ba1ff130f47b.zip
cpython-e3ded955f3b145e38be47be61c53ba1ff130f47b.tar.gz
cpython-e3ded955f3b145e38be47be61c53ba1ff130f47b.tar.bz2
Issue #14814: Remove redundant property from interface objects - prefixlen can be accessed via the associated network object
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r--Lib/test/test_ipaddress.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py
index 061c866..09b4a5e 100644
--- a/Lib/test/test_ipaddress.py
+++ b/Lib/test/test_ipaddress.py
@@ -731,8 +731,8 @@ class IpaddrUnitTest(unittest.TestCase):
'2001:658:22a:cafe:ffff:ffff:ffff:ffff')
def testGetPrefixlen(self):
- self.assertEqual(self.ipv4_interface.prefixlen, 24)
- self.assertEqual(self.ipv6_interface.prefixlen, 64)
+ self.assertEqual(self.ipv4_interface.network.prefixlen, 24)
+ self.assertEqual(self.ipv6_interface.network.prefixlen, 64)
def testGetSupernet(self):
self.assertEqual(self.ipv4_network.supernet().prefixlen, 23)