MCPcopy Create free account
hub / github.com/espnet/espnet / _Ctx

Class _Ctx

test/espnet3/parallel/test_parallel.py:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155def test_parallel_map_internal_client(local_cfg, monkeypatch):
156 # Test the branch where client=None and get_client() is internally used
157 class _Ctx:
158 def __init__(self, client):
159 self.client = client
160
161 def __enter__(self):
162 return self.client
163
164 def __exit__(self, exc_type, exc, tb):
165 self.client.close()
166
167 cli = build_client(local_cfg)
168 monkeypatch.setattr(

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…