@@ -1677,14 +1677,6 @@ def create_array(read_only=False, **kwargs):
1677
1677
1678
1678
class TestArrayWithN5Store (TestArrayWithDirectoryStore ):
1679
1679
1680
- DIGESTS = (
1681
- "453feae4fa9c7086da9e77982e313a45180e4954" ,
1682
- "35e50e63ec4443b6f73094daee51af9a28b8702f" ,
1683
- "8946a49684c3ca9432c896c6129cb00e5d70ad80" ,
1684
- "c71ad4699147c54cde28a54d23ea83e4c80b14b6" ,
1685
- "eb997d6507c5bf9ab994b75b28e24ad2a99fa3d6" ,
1686
- )
1687
-
1688
1680
@staticmethod
1689
1681
def create_array (read_only = False , ** kwargs ):
1690
1682
path = mkdtemp ()
@@ -1935,27 +1927,37 @@ def test_compressors(self):
1935
1927
assert np .all (a2 [:] == 1 )
1936
1928
1937
1929
def test_hexdigest (self ):
1930
+ expecting = [
1931
+ 'c6b83adfad999fbd865057531d749d87cf138f58' ,
1932
+ 'a3d6d187536ecc3a9dd6897df55d258e2f52f9c5' ,
1933
+ 'ec2e008525ae09616dbc1d2408cbdb42532005c8' ,
1934
+ 'b63f031031dcd5248785616edcb2d6fe68203c28' ,
1935
+ '0cfc673215a8292a87f3c505e2402ce75243c601' ,
1936
+ ]
1937
+ found = []
1938
1938
# Check basic 1-D array
1939
1939
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
1940
- assert self . DIGESTS [ 0 ] == z .hexdigest ()
1940
+ found . append ( z .hexdigest () )
1941
1941
1942
1942
# Check basic 1-D array with different type
1943
1943
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<f4' )
1944
- assert self . DIGESTS [ 1 ] == z .hexdigest ()
1944
+ found . append ( z .hexdigest () )
1945
1945
1946
1946
# Check basic 2-D array
1947
1947
z = self .create_array (shape = (20 , 35 ,), chunks = 10 , dtype = '<i4' )
1948
- assert self . DIGESTS [ 2 ] == z .hexdigest ()
1948
+ found . append ( z .hexdigest () )
1949
1949
1950
1950
# Check basic 1-D array with some data
1951
1951
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
1952
1952
z [200 :400 ] = np .arange (200 , 400 , dtype = 'i4' )
1953
- assert self . DIGESTS [ 3 ] == z .hexdigest ()
1953
+ found . append ( z .hexdigest () )
1954
1954
1955
1955
# Check basic 1-D array with attributes
1956
1956
z = self .create_array (shape = (1050 ,), chunks = 100 , dtype = '<i4' )
1957
1957
z .attrs ['foo' ] = 'bar'
1958
- assert self .DIGESTS [4 ] == z .hexdigest ()
1958
+ found .append (z .hexdigest ())
1959
+
1960
+ assert expecting == found
1959
1961
1960
1962
1961
1963
class TestArrayWithDBMStore (TestArray ):
0 commit comments