Skip to content

Commit 8fcab2f

Browse files
authored
GH-48402: [Python] Enable the relative path in test_write_dataset (#48403)
### Rationale for this change Enable a test that is intended so. ### What changes are included in this PR? This PR proposes to enable the relative path in `test_write_dataset` with `pyarrow.tests.util.change_cwd`. ### Are these changes tested? Manually tested with `pytest -k "test_write_dataset"` ### Are there any user-facing changes? No, test-only. * GitHub Issue: #48402 Authored-by: Hyukjin Kwon <[email protected]> Signed-off-by: Adam Reeve <[email protected]>
1 parent 850f11e commit 8fcab2f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/pyarrow/tests/test_dataset.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4232,12 +4232,12 @@ def test_write_dataset(tempdir):
42324232
expected_files = [target / "part-0.arrow"]
42334233
_check_dataset_roundtrip(dataset, target, expected_files, 'a', target)
42344234

4235-
# TODO
4236-
# # relative path
4237-
# target = tempdir / 'single-file-target3'
4238-
# expected_files = [target / "part-0.ipc"]
4239-
# _check_dataset_roundtrip(
4240-
# dataset, './single-file-target3', expected_files, target)
4235+
# relative path
4236+
target = tempdir / 'single-file-target3'
4237+
expected_files = [target / "part-0.arrow"]
4238+
with change_cwd(tempdir):
4239+
_check_dataset_roundtrip(
4240+
dataset, './single-file-target3', expected_files, 'a', target)
42414241

42424242
# Directory of files
42434243
directory = tempdir / 'single-directory'

0 commit comments

Comments
 (0)