Skip to content

Commit

Permalink
Merge pull request #560 from rapidsai/branch-24.12
Browse files Browse the repository at this point in the history
Forward-merge branch-24.12 into branch-25.02
  • Loading branch information
GPUtester authored Nov 21, 2024
2 parents 19e44c0 + b0e7bd1 commit 38ed0f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/kvikio/tests/test_async_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def test_read_write(tmp_path, size):
assert f.raw_write_async(a, stream.ptr).check_bytes_done() == a.nbytes

# Try to read file opened in write-only mode
with pytest.raises(RuntimeError, match="Operation not permitted"):
# POSIX read would yield the error "Operation not permitted"
# cuFile read would yield the error "unsupported file open flags"
with pytest.raises(
RuntimeError, match="Operation not permitted|unsupported file open flags"
):
# The exception is raised when we call the raw_read_async API.
future_stream = f.raw_read_async(a, stream.ptr)
future_stream.check_bytes_done()
Expand Down

0 comments on commit 38ed0f5

Please sign in to comment.