MCPcopy
hub / github.com/numpy/numpy / test_flush

Method test_flush

numpy/_core/tests/test_memmap.py:108–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 @pytest.mark.skipif(sys.platform == 'gnu0',
107 reason="Known to fail on hurd")
108 def test_flush(self):
109 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
110 shape=self.shape)
111 fp[:] = self.data[:]
112 assert_equal(fp[0], self.data[0])
113 fp.flush()
114
115 def test_del(self):
116 # Make sure a view does not delete the underlying mmap

Callers

nothing calls this directly

Calls 3

memmapClass · 0.90
assert_equalFunction · 0.90
flushMethod · 0.45

Tested by

no test coverage detected