MCPcopy
hub / github.com/benoitc/gunicorn / test_close_idempotent

Method test_close_idempotent

tests/ctl/test_client.py:90–94  ·  view source on GitHub ↗

Test that close can be called multiple times.

(self)

Source from the content-addressed store, hash-verified

88 """Tests for ControlClient close."""
89
90 def test_close_idempotent(self):
91 """Test that close can be called multiple times."""
92 client = ControlClient("/tmp/test.sock")
93 client.close()
94 client.close() # Should not raise
95
96 def test_close_clears_socket(self):
97 """Test that close clears the socket."""

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
ControlClientClass · 0.90

Tested by

no test coverage detected