File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
pytest-asyncio
3
3
pytest-cov
4
4
mock-ssh-server
5
+ importlib-metadata >= 6.0.0
Original file line number Diff line number Diff line change 8
8
from pathlib import Path
9
9
10
10
import fsspec
11
- import pkg_resources
12
11
import pytest
13
12
from asyncssh .sftp import SFTPFailure
13
+ from importlib_metadata import entry_points
14
14
15
15
from sshfs import SSHFileSystem
16
16
@@ -74,7 +74,7 @@ def strip_keys(info):
74
74
75
75
76
76
def test_fsspec_registration (ssh_server ):
77
- for ep in pkg_resources . iter_entry_points ( group = "fsspec.specs" ):
77
+ for ep in list ( entry_points ( group = "fsspec.specs" ) ):
78
78
fs = fsspec .filesystem (
79
79
ep .name ,
80
80
host = ssh_server .host ,
@@ -86,7 +86,7 @@ def test_fsspec_registration(ssh_server):
86
86
87
87
88
88
def test_fsspec_url_parsing (ssh_server , remote_dir , user = "user" ):
89
- for ep in pkg_resources . iter_entry_points ( group = "fsspec.specs" ):
89
+ for ep in list ( entry_points ( group = "fsspec.specs" ) ):
90
90
url = f"{ ep .name } ://{ user } @{ ssh_server .host } :{ ssh_server .port } /{ remote_dir } /file"
91
91
with fsspec .open (url , "w" , client_keys = [USERS [user ]]) as file :
92
92
# Check the underlying file system.
You can’t perform that action at this time.
0 commit comments