MCPcopy Index your code
hub / github.com/python/cpython / test_large_ints_rejected

Method test_large_ints_rejected

Lib/test/test_ipaddress.py:170–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.factory(-1)
169
170 def test_large_ints_rejected(self):
171 msg = "%d (>= 2**128) is not permitted as an IPv6 address"
172 with self.assertAddressError(re.escape(msg % 2**128)):
173 self.factory(2**128)
174
175 def test_bad_packed_length(self):
176 def assertBadLength(length):

Callers

nothing calls this directly

Calls 3

assertAddressErrorMethod · 0.80
escapeMethod · 0.80
factoryMethod · 0.45

Tested by

no test coverage detected