diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-11 19:30:05 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-11 19:30:05 (GMT) |
commit | 28dc1186a895ee76cbe039d71110b8a31fa1add4 (patch) | |
tree | e6a243b7b3e88c65d1a0d697dcc6b0a6998e0739 /Lib/test/test_ipaddress.py | |
parent | 24b102e6e86df006e90e2b73353e903840ea0327 (diff) | |
download | cpython-28dc1186a895ee76cbe039d71110b8a31fa1add4.zip cpython-28dc1186a895ee76cbe039d71110b8a31fa1add4.tar.gz cpython-28dc1186a895ee76cbe039d71110b8a31fa1add4.tar.bz2 |
Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__
Patch by Gareth Rees.
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r-- | Lib/test/test_ipaddress.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py index be62fad..6c08f80 100644 --- a/Lib/test/test_ipaddress.py +++ b/Lib/test/test_ipaddress.py @@ -1176,6 +1176,7 @@ class IpaddrUnitTest(unittest.TestCase): self.assertEqual(str(self.ipv6_network[5]), '2001:658:22a:cafe::5') + self.assertRaises(IndexError, self.ipv6_network.__getitem__, 1 << 64) def testGetitem(self): # http://code.google.com/p/ipaddr-py/issues/detail?id=15 |