From c07a339da85cb89b81c88a821af0efc9de96b7ef Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sun, 8 Dec 2024 13:04:41 +0000 Subject: [PATCH] Fix doctest requires --- docs/tutorial.rst | 4 ++-- zarr/storage.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 87c4a20103..9f0cc11827 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -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 -`_ to be installed):: +`_ to be installed): -.. doctest-requires:: bsddb3 +.. doctest-requires:: >>> import bsddb3 >>> store = zarr.DBMStore('data/example.bdb', open=bsddb3.btopen) diff --git a/zarr/storage.py b/zarr/storage.py index 7e5e966bc1..2c6bb16c08 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -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 `_ package is installed, a - Berkeley DB database can be used:: + Berkeley DB database can be used: .. doctest-requires:: bsddb3