MCPcopy Create free account
hub / github.com/wal-e/wal-e / fake_fsync

Function fake_fsync

tests/test_tar_hacks.py:51–55  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

49 return
50
51 def fake_fsync(fd):
52 if fd in open_descriptors:
53 synced_filenames.add(open_descriptors[fd])
54 real_fsync(fd)
55 return
56
57 monkeypatch.setattr(os, 'open', fake_open)
58 monkeypatch.setattr(os, 'close', fake_close)

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected