MCPcopy
hub / github.com/redis/redis-py / close

Method close

tests/test_parsers/test_errors.py:102–106  ·  view source on GitHub ↗

Simulate closing the socket.

(self)

Source from the content-addressed store, hash-verified

100 return 1 # Fake file descriptor
101
102 def close(self):
103 """Simulate closing the socket."""
104 self.closed = True
105 self.address = None
106 self.timeout = None
107
108 def settimeout(self, timeout):
109 pass

Callers 15

test_close_is_acloseFunction · 0.45
_disconnect_without_taskFunction · 0.45
test_close_is_acloseMethod · 0.45
_handlerFunction · 0.45
_assert_connectFunction · 0.45
startMethod · 0.45
pipeMethod · 0.45
startMethod · 0.45
handleMethod · 0.45
acloseMethod · 0.45
test_close_is_acloseMethod · 0.45
deployed_sentinelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected