Skip to content

Commit 60ba16a

Browse files
committed
doctest, skip
1 parent 56cc00c commit 60ba16a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/user-guide/gpu.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ buffers used internally by Zarr.
2525
.. code-block:: python
2626
2727
>>> import zarr
28-
>>> import cupy as cp
29-
>>> zarr.config.enable_gpu()
30-
>>> store = zarr.storage.MemoryStore()
31-
>>> z = zarr.create_array(
28+
>>> import cupy as cp # doctest: +SKIP
29+
>>> zarr.config.enable_gpu() # doctest: +SKIP
30+
>>> store = zarr.storage.MemoryStore() # doctest: +SKIP
31+
>>> z = zarr.create_array( # doctest: +SKIP
3232
... store=store, shape=(100, 100), chunks=(10, 10), dtype="float32",
3333
... )
34-
>>> type(z[:10, :10])
34+
>>> type(z[:10, :10]) # doctest: +SKIP
3535
cupy.ndarray
3636
3737
Note that the output type is a ``cupy.ndarray`` rather than a NumPy array.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ features = ["test", "optional"]
168168
description = "Test environment for doctests"
169169

170170
[tool.hatch.envs.doctest.scripts]
171-
run = "rm -r data/; pytest docs/user-guide --doctest-glob='*.rst'"
171+
run = "rm -r data/; pytest docs/user-guide --doctest-glob='*.rst' -k not gpu"
172172
fix = "rm -r data/; pytest docs/user-guide --doctest-glob='*.rst' --accept"
173173
list-env = "pip list"
174174

0 commit comments

Comments
 (0)