Skip to content

Commit 142351e

Browse files
committed
tests: test_simple remove debugging
1 parent bd8e26c commit 142351e

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

fsspec/implementations/tests/test_reference.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from fsspec.tests.conftest import data, reset_files, server, win # noqa: F401
1414

1515

16-
def test_simple(server, instance_caches):
16+
def test_simple(server):
1717
# The dictionary in refs may be dumped with a different separator
1818
# depending on whether json or ujson is imported
1919
from fsspec.implementations.reference import json as json_impl
@@ -26,31 +26,11 @@ def test_simple(server, instance_caches):
2626
"e": {"key": "value"},
2727
}
2828

29-
assert instance_caches.gather_counts() == {}
30-
3129
h = fsspec.filesystem("http")
3230
fs = fsspec.filesystem("reference", fo=refs, fs=h)
3331

34-
assert instance_caches.gather_counts() == {
35-
"http": 1,
36-
# "reference": 1, <-- ReferenceFileSystem is not cachable
37-
}
38-
39-
assert {
40-
"protocol": h.protocol,
41-
"module": h.__class__.__module__,
42-
"name": h.__class__.__name__,
43-
} == {
44-
"protocol": "http",
45-
"module": "fsspec.implementations.http",
46-
"name": "HTTPFileSystem",
47-
}
48-
49-
assert fs.fss == {"http": h, None: h}
5032
assert fs.cat("a") == b"data"
51-
assert fs.fss == {"http": h, None: h}
5233
assert fs.cat("b") == data[:5]
53-
assert fs.fss == {"http": h, None: h}
5434
assert fs.cat("c") == data[1 : 1 + 5]
5535
assert fs.cat("d") == b"hello"
5636
assert fs.cat("e") == json_impl.dumps(refs["e"]).encode("utf-8")

0 commit comments

Comments
 (0)