MCPcopy
hub / github.com/pydata/xarray / Closer

Class Closer

xarray/tests/test_datatree.py:2545–2552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2543
2544
2545class Closer:
2546 def __init__(self):
2547 self.closed = False
2548
2549 def close(self):
2550 if self.closed:
2551 raise RuntimeError("already closed")
2552 self.closed = True
2553
2554
2555@pytest.fixture

Callers 1

tree_and_closersFunction · 0.85

Calls

no outgoing calls

Tested by 1

tree_and_closersFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…