Integration: fdatasync completes on a real file without error.
()
| 98 | |
| 99 | |
| 100 | def test_fdatasync_basic(): |
| 101 | """Integration: fdatasync completes on a real file without error.""" |
| 102 | with tempfile.NamedTemporaryFile() as tmp: |
| 103 | tmp.write(b"test data for fdatasync") |
| 104 | tmp.flush() |
| 105 | fdatasync(tmp.fileno()) |
| 106 | |
| 107 | |
| 108 | def test_sync_dir_basic(): |