From 3f07fa9e67cfa46e1973893415ec1babf256dabf Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 5 Mar 2024 20:15:50 +0530 Subject: [PATCH] Skip two more FS failures on WASM --- pandas/tests/io/parser/common/test_file_buffer_url.py | 2 ++ pandas/tests/io/test_common.py | 1 + 2 files changed, 3 insertions(+) diff --git a/pandas/tests/io/parser/common/test_file_buffer_url.py b/pandas/tests/io/parser/common/test_file_buffer_url.py index 4d63a88582fb8..782a75caac0ae 100644 --- a/pandas/tests/io/parser/common/test_file_buffer_url.py +++ b/pandas/tests/io/parser/common/test_file_buffer_url.py @@ -93,6 +93,8 @@ def test_nonexistent_path(all_parsers): assert path == e.value.filename +@td.skip_if_wasm # limited file system access on WASM, it leads to different +# error messages than on other platforms @td.skip_if_windows # os.chmod does not work in windows def test_no_permission(all_parsers): # GH 23784 diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index bab2cb1dfa93e..3f7a662fba375 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -408,6 +408,7 @@ def test_constructor_bad_file(self, mmap_file): with pytest.raises(ValueError, match=msg): icom._maybe_memory_map(target, True) + @td.skip_if_wasm # limited file system access on WASM def test_next(self, mmap_file): with open(mmap_file, encoding="utf-8") as target: lines = target.readlines()