2222 asb = None
2323
2424
25- from zarr .storage import (init_array , array_meta_key , attrs_key , DictStore ,
25+ from zarr .storage import (init_array , array_meta_key , attrs_key , DictStore , MemoryStore ,
2626 DirectoryStore , ZipStore , init_group , group_meta_key ,
2727 getsize , migrate_1to2 , TempStore , atexit_rmtree ,
2828 NestedDirectoryStore , default_compressor , DBMStore ,
@@ -652,7 +652,7 @@ def test_set_invalid_content(self):
652652def setdel_hierarchy_checks (store ):
653653 # these tests are for stores that are aware of hierarchy levels; this
654654 # behaviour is not stricly required by Zarr but these tests are included
655- # to define behaviour of DictStore and DirectoryStore classes
655+ # to define behaviour of MemoryStore and DirectoryStore classes
656656
657657 # check __setitem__ and __delitem__ blocked by leaf
658658
@@ -686,10 +686,10 @@ def setdel_hierarchy_checks(store):
686686 assert 'r/s' not in store
687687
688688
689- class TestDictStore (StoreTests , unittest .TestCase ):
689+ class TestMemoryStore (StoreTests , unittest .TestCase ):
690690
691691 def create_store (self ):
692- return DictStore ()
692+ return MemoryStore ()
693693
694694 def test_store_contains_bytes (self ):
695695 store = self .create_store ()
@@ -701,6 +701,17 @@ def test_setdel(self):
701701 setdel_hierarchy_checks (store )
702702
703703
704+ class TestDictStore (StoreTests , unittest .TestCase ):
705+
706+ def create_store (self ):
707+ return DictStore ()
708+
709+ def test_deprecated (self ):
710+ with pytest .warns (DeprecationWarning ):
711+ store = self .create_store ()
712+ assert isinstance (store , MemoryStore )
713+
714+
704715class TestDirectoryStore (StoreTests , unittest .TestCase ):
705716
706717 def create_store (self ):
0 commit comments