mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__
Patch by Gareth Rees.
This commit is contained in:
parent
24b102e6e8
commit
28dc1186a8
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue