Skip to content

Commit

Permalink
remove memory_map test
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Sep 21, 2024
1 parent 1ed06e3 commit a313e10
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/testthat/test-ipc.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,6 @@ patrick::with_parameters_test_that("input/output DataFrame as raw vector",
)


test_that("memory_map", {
tmpf = tempfile(fileext = ".arrow")
on.exit(unlink(tmpf))
pl$DataFrame(x = 1)$write_ipc(tmpf, compression = "uncompressed")

df = pl$read_ipc(tmpf, memory_map = TRUE)

expect_true(
df$equals(pl$DataFrame(x = 1))
)

# On Windows, the file is still open so overwriting it is not allowed
skip_on_os("windows")
pl$DataFrame(y = 2)$write_ipc(tmpf, compression = "uncompressed")

expect_true(
df$equals(pl$DataFrame(x = 2))
)
})


test_that("scanning from hive partition works", {
skip_if_not_installed("arrow")
skip_if_not_installed("withr")
Expand Down

0 comments on commit a313e10

Please sign in to comment.