Skip to content

Commit 2a73d5e

Browse files
authored
Merge pull request #21 from observingClouds/patch-1
Fix for fsspec 2023.4.0
2 parents 8eb96df + bfdb4d8 commit 2a73d5e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ipfsspec/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
from .core import IPFSFileSystem
22
from .async_ipfs import AsyncIPFSFileSystem
3-
from fsspec import register_implementation
43

54
from ._version import get_versions
65
__version__ = get_versions()['version']
76
del get_versions
87

9-
# register_implementation(IPFSFileSystem.protocol, IPFSFileSystem)
10-
register_implementation(AsyncIPFSFileSystem.protocol, AsyncIPFSFileSystem)
11-
128
__all__ = ["__version__", "IPFSFileSystem", "AsyncIPFSFileSystem"]

test/test_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
import pytest_asyncio
23
from ipfsspec.async_ipfs import AsyncIPFSGateway, MultiGateway, AsyncIPFSFileSystem
34
import aiohttp
45

@@ -7,7 +8,7 @@
78
TEST_FILENAMES = ["default", "multi", "raw", "raw_multi", "write"]
89

910

10-
@pytest.fixture
11+
@pytest_asyncio.fixture
1112
async def session():
1213
async with aiohttp.ClientSession() as session:
1314
yield session

0 commit comments

Comments
 (0)