Skip to content

Commit bacae68

Browse files
committed
delete old tests; adapt zict.Zip test
1 parent 41af4eb commit bacae68

File tree

2 files changed

+11
-114
lines changed

2 files changed

+11
-114
lines changed

zarr/tests/test_core.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ def test_nbytes_stored():
4545
z[:] = 42
4646
eq(sum(len(v) for v in store.values()), z.nbytes_stored)
4747

48-
# # custom store, doesn't support size determination
49-
# with NamedTemporaryFile() as f:
50-
# store = zict.Zip(f.name, mode='w')
51-
# init_store(store, shape=1000, chunks=100)
52-
# z = Array(store)
53-
# eq(-1, z.nbytes_stored)
54-
# z[:] = 42
55-
# eq(-1, z.nbytes_stored)
48+
# custom store, doesn't support size determination
49+
with NamedTemporaryFile() as f:
50+
store = zict.Zip(f.name, mode='w')
51+
# N.B., use zlib for now as blosc extension currently not compatible
52+
# with zict,Zip
53+
init_store(store, shape=1000, chunks=100, compression='zlib',
54+
compression_opts=1)
55+
z = Array(store)
56+
eq(-1, z.nbytes_stored)
57+
z[:] = 42
58+
eq(-1, z.nbytes_stored)
5659

5760

5861
class TestArray(unittest.TestCase):

zarr/tests/test_store.py

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)