@@ -2389,31 +2389,22 @@ def test_hexdigest(self):
2389
2389
# Check basic 1-D array
2390
2390
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
2391
2391
assert 'f710da18d45d38d4aaf2afd7fb822fdd73d02957' == z .hexdigest ()
2392
- if hasattr (z .store , 'close' ):
2393
- z .store .close ()
2394
2392
2395
2393
# Check basic 1-D array with different type
2396
2394
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<f4' )
2397
2395
assert '1437428e69754b1e1a38bd7fc9e43669577620db' == z .hexdigest ()
2398
- if hasattr (z .store , 'close' ):
2399
- z .store .close ()
2400
2396
2401
2397
# Check basic 2-D array
2402
2398
z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '<i4' )
2403
2399
assert '6c530b6b9d73e108cc5ee7b6be3d552cc994bdbe' == z .hexdigest ()
2404
- if hasattr (z .store , 'close' ):
2405
- z .store .close ()
2406
2400
2407
2401
# Check basic 1-D array with some data
2408
2402
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
2409
2403
z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
2410
2404
assert '4c0a76fb1222498e09dcd92f7f9221d6cea8b40e' == z .hexdigest ()
2411
- if hasattr (z .store , 'close' ):
2412
- z .store .close ()
2413
2405
2414
2406
# Check basic 1-D array with attributes
2415
2407
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
2416
2408
z .attrs ['foo' ] = 'bar'
2417
2409
assert '05b0663ffe1785f38d3a459dec17e57a18f254af' == z .hexdigest ()
2418
- if hasattr (z .store , 'close' ):
2419
- z .store .close ()
2410
+
0 commit comments