Skip to content

Commit

Permalink
Fix doctest requires
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Dec 8, 2024
1 parent a42a14d commit c07a339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,9 @@ Another storage alternative is the :class:`zarr.storage.DBMStore` class, added
in Zarr version 2.2. This class allows any DBM-style database to be used for
storing an array or group. Here is an example using a Berkeley DB B-tree
database for storage (requires `bsddb3
<https://www.jcea.es/programacion/pybsddb.htm>`_ to be installed)::
<https://www.jcea.es/programacion/pybsddb.htm>`_ to be installed):

.. doctest-requires:: bsddb3
.. doctest-requires::

>>> import bsddb3
>>> store = zarr.DBMStore('data/example.bdb', open=bsddb3.btopen)
Expand Down
2 changes: 1 addition & 1 deletion zarr/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ class DBMStore(Store):
A different database library can be used by passing a different function to
the `open` parameter. For example, if the `bsddb3
<https://www.jcea.es/programacion/pybsddb.htm>`_ package is installed, a
Berkeley DB database can be used::
Berkeley DB database can be used:
.. doctest-requires:: bsddb3
Expand Down

0 comments on commit c07a339

Please sign in to comment.