From 981fbd09388e67692765b2bfbf8685808e6e1152 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 5 Mar 2023 15:40:58 +0200 Subject: [PATCH] fixtures: add open_input_file to FakeHadoopFileSystem To fix failing CI because of fsspec's arrow implementation that started using `open_input_file` --- dvc_hdfs/tests/fixtures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dvc_hdfs/tests/fixtures.py b/dvc_hdfs/tests/fixtures.py index ce52669..a5e8f72 100644 --- a/dvc_hdfs/tests/fixtures.py +++ b/dvc_hdfs/tests/fixtures.py @@ -182,6 +182,9 @@ def create_dir(self, path, **kwargs): def open_input_stream(self, path, **kwargs): return self._fs.open_input_stream(self._path(path), **kwargs) + def open_input_file(self, path, **kwargs): + return self._fs.open_input_file(self._path(path), **kwargs) + def open_output_stream(self, path, **kwargs): import posixpath