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

Method test_floats_rejected

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

Source from the content-addressed store, hash-verified

77 self.factory("")
78
79 def test_floats_rejected(self):
80 with self.assertAddressError(re.escape(repr("1.0"))):
81 self.factory(1.0)
82
83 def test_not_an_index_issue15559(self):
84 # Implementing __index__ makes for a very nasty interaction with the

Callers

nothing calls this directly

Calls 3

assertAddressErrorMethod · 0.80
escapeMethod · 0.80
factoryMethod · 0.45

Tested by

no test coverage detected