MCPcopy Create free account
hub / github.com/numpy/numpy / setup_method

Method setup_method

numpy/core/tests/test_memmap.py:18–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16
17class TestMemmap:
18 def setup_method(self):
19 self.tmpfp = NamedTemporaryFile(prefix='mmap')
20 self.shape = (3, 4)
21 self.dtype = 'float32'
22 self.data = arange(12, dtype=self.dtype)
23 self.data.resize(self.shape)
24
25 def teardown_method(self):
26 self.tmpfp.close()

Callers

nothing calls this directly

Calls 2

arangeFunction · 0.90
resizeMethod · 0.45

Tested by

no test coverage detected