MCPcopy Index your code
hub / github.com/RustPython/RustPython / testInterpreterCrash

Method testInterpreterCrash

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

Source from the content-addressed store, hash-verified

1219 self.fail("socket.getnameinfo loses a reference")
1220
1221 def testInterpreterCrash(self):
1222 # Making sure getnameinfo doesn't crash the interpreter
1223 try:
1224 # On some versions, this crashes the interpreter.
1225 socket.getnameinfo(('x', 0, 0, 0), 0)
1226 except OSError:
1227 pass
1228
1229 def testNtoH(self):
1230 # 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