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

Method test_SOCK_CLOEXEC

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

Source from the content-addressed store, hash-verified

6580 "SOCK_CLOEXEC not defined")
6581 @support.requires_linux_version(2, 6, 28)
6582 def test_SOCK_CLOEXEC(self):
6583 with socket.socket(socket.AF_INET,
6584 socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s:
6585 self.assertEqual(s.type, socket.SOCK_STREAM)
6586 self.assertFalse(s.get_inheritable())
6587
6588 def test_default_inheritable(self):
6589 sock = socket.socket()

Callers

nothing calls this directly

Calls 4

socketMethod · 0.80
assertFalseMethod · 0.80
assertEqualMethod · 0.45
get_inheritableMethod · 0.45

Tested by

no test coverage detected