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

Method test_flush

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

Source from the content-addressed store, hash-verified

99 @pytest.mark.skipif(sys.platform == 'gnu0',
100 reason="Known to fail on hurd")
101 def test_flush(self):
102 fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
103 shape=self.shape)
104 fp[:] = self.data[:]
105 assert_equal(fp[0], self.data[0])
106 fp.flush()
107
108 def test_del(self):
109 # 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