Skip to content

Commit 081dcd2

Browse files
committed
fix consolidated tests
1 parent 892470f commit 081dcd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zarr/tests/test_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ def test_bad_format(self):
12641264
# bad format version
12651265
'zarr_consolidated_format': 0,
12661266
}
1267-
store['.zmetadata'] = json.dumps(consolidated)
1267+
store['.zmetadata'] = json.dumps(consolidated).encode()
12681268

12691269
# check appropriate error is raised
12701270
with pytest.raises(MetadataError):
@@ -1281,7 +1281,7 @@ def test_read_write(self):
12811281
'baz': 42,
12821282
}
12831283
}
1284-
store['.zmetadata'] = json.dumps(consolidated)
1284+
store['.zmetadata'] = json.dumps(consolidated).encode()
12851285

12861286
# create consolidated store
12871287
cs = ConsolidatedMetadataStore(store)

0 commit comments

Comments
 (0)