MCPcopy
hub / github.com/zeromq/pyzmq / socket

Function socket

tests/conftest.py:137–145  ·  view source on GitHub ↗

Fixture to create sockets, while tracking them for cleanup

(context, sockets)

Source from the content-addressed store, hash-verified

135
136@pytest.fixture
137def socket(context, sockets):
138 """Fixture to create sockets, while tracking them for cleanup"""
139
140 def new_socket(*args, **kwargs):
141 s = context.socket(*args, **kwargs)
142 sockets.append(s)
143 return s
144
145 return new_socket
146
147
148def assert_raises_errno(errno):

Callers 6

test_monitorFunction · 0.70
test_monitor_repeatFunction · 0.70
test_monitor_connectedFunction · 0.70
push_pullFunction · 0.70
create_bound_pairFunction · 0.70
test_send_timeoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…