Skip to content

Commit 9244f0a

Browse files
committed
test/pybind: update to test_fallocate for mode 0
Signed-off-by: Milind Changire <[email protected]>
1 parent b069083 commit 9244f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/pybind/test_cephfs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ def test_ftruncate(testdir):
610610
def test_fallocate(testdir):
611611
fd = cephfs.open(b'/file-fallocate', 'w', 0o755)
612612
assert_raises(TypeError, cephfs.fallocate, b'/file-fallocate', 0, 10)
613-
cephfs.fallocate(fd, 0, 10)
613+
assert_raises(libcephfs.OperationNotSupported, cephfs.fallocate, fd, 0, 10)
614614
stat = cephfs.fsync(fd, 0)
615615
st = cephfs.fstat(fd)
616-
assert_equal(st.st_size, 10)
616+
assert_equal(st.st_size, 0)
617617
cephfs.close(fd)
618618
cephfs.unlink(b'/file-fallocate')
619619

0 commit comments

Comments
 (0)