Skip to content

Commit 76da18c

Browse files
authored
Remove test using distutils (fsspec#881)
1 parent 3e739db commit 76da18c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

fsspec/implementations/tests/test_local.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import sys
1010
import tempfile
1111
from contextlib import contextmanager
12-
from distutils.version import LooseVersion
1312
from pathlib import Path
1413
from unittest.mock import patch
1514

@@ -346,22 +345,6 @@ def test_touch(tmpdir):
346345
assert info2["mtime"] > info["mtime"]
347346

348347

349-
def test_get_pyarrow_filesystem():
350-
pa = pytest.importorskip("pyarrow")
351-
352-
fs = LocalFileSystem()
353-
if LooseVersion(pa.__version__) < LooseVersion("2.0"):
354-
assert isinstance(fs, pa.filesystem.FileSystem)
355-
assert fs._get_pyarrow_filesystem() is fs
356-
else:
357-
assert not isinstance(fs, pa.filesystem.FileSystem)
358-
359-
class UnknownFileSystem(object):
360-
pass
361-
362-
assert not isinstance(UnknownFileSystem(), pa.filesystem.FileSystem)
363-
364-
365348
def test_directories(tmpdir):
366349
tmpdir = make_path_posix(str(tmpdir))
367350
fs = LocalFileSystem()

0 commit comments

Comments
 (0)