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

Method testInterpreterCrash

Lib/test/test_socket.py:1229–1235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1227 self.fail("socket.getnameinfo loses a reference")
1228
1229 def testInterpreterCrash(self):
1230 # Making sure getnameinfo doesn't crash the interpreter
1231 try:
1232 # On some versions, this crashes the interpreter.
1233 socket.getnameinfo(('x', 0, 0, 0), 0)
1234 except OSError:
1235 pass
1236
1237 def testNtoH(self):
1238 # This just checks that htons etc. are their own inverse,

Callers

nothing calls this directly

Calls 1

getnameinfoMethod · 0.45

Tested by

no test coverage detected