Skip to content

Commit 4bea4bb

Browse files
committed
new pyfive File API
1 parent 98a74c5 commit 4bea4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_compression.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def check_dataset_filters(temp_file: str, ncvar: str, compression: str, shuffle:
1717
if USE_S3:
1818
with load_from_s3(temp_file) as test_data:
1919
# NOTE: h5netcdf thinks zlib is gzip
20-
assert test_data.variables[ncvar].compression == "gzip"
21-
assert test_data.variables[ncvar].shuffle == shuffle
20+
assert test_data[ncvar].attrs.get('compression') == "gzip"
21+
assert test_data[ncvar].attrs.get('shuffle') == shuffle
2222
else:
2323
with Dataset(temp_file) as test_data:
2424
test_data_filters = test_data.variables[ncvar].filters()

0 commit comments

Comments
 (0)