Skip to content

Commit 2b469ab

Browse files
committed
don't try running bsddb3 doctests
1 parent 9eaf470 commit 2b469ab

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

docs/tutorial.rst

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -807,21 +807,8 @@ underlying ZIP archive.
807807

808808
Another storage alternative is the :class:`zarr.storage.DBMStore` class, added
809809
in Zarr version 2.2. This class allows any DBM-style database to be used for
810-
storing an array or group. Here is an example using a Berkeley DB B-tree
811-
database for storage (requires `bsddb3
812-
<https://www.jcea.es/programacion/pybsddb.htm>`_ to be installed):
813-
814-
.. doctest-requires:: bsddb3
815-
816-
>>> import bsddb3
817-
>>> store = zarr.DBMStore('data/example.bdb', open=bsddb3.btopen)
818-
>>> root = zarr.group(store=store, overwrite=True)
819-
>>> z = root.zeros('foo/bar', shape=(1000, 1000), chunks=(100, 100), dtype='i4')
820-
>>> z[:] = 42
821-
>>> store.close()
822-
823-
Also added in Zarr version 2.2 is the :class:`zarr.storage.LMDBStore` class which
824-
enables the lightning memory-mapped database (LMDB) to be used for storing an array or
810+
storing an array or group. Here is an example using the
811+
lightning memory-mapped database (LMDB) to be used for storing an array or
825812
group (requires `lmdb <https://lmdb.readthedocs.io/>`_ to be installed)::
826813

827814
>>> store = zarr.LMDBStore('data/example.lmdb')

zarr/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ class DBMStore(Store):
20692069
<https://www.jcea.es/programacion/pybsddb.htm>`_ package is installed, a
20702070
Berkeley DB database can be used:
20712071
2072-
.. doctest-requires:: bsddb3
2072+
.. doctest-skip::
20732073
20742074
>>> import bsddb3
20752075
>>> store = zarr.DBMStore('data/array.bdb', open=bsddb3.btopen)

0 commit comments

Comments
 (0)