Skip to content

Commit 2198438

Browse files
author
Martin Durant
committed
Skip doctests needing connectivity
1 parent 736b41c commit 2198438

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/tutorial.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -863,20 +863,20 @@ for all of the backend storage implementations `supported by fsspec`_,
863863
you can skip importing and configuring the storage explicitly.
864864
For example::
865865

866-
>>> g = zarr.open_group("s3://zarr-demo/store", storage_options={'anon': True})
867-
>>> g['foo/bar/baz'][:].tobytes()
866+
>>> g = zarr.open_group("s3://zarr-demo/store", storage_options={'anon': True}) # doctest: +SKIP
867+
>>> g['foo/bar/baz'][:].tobytes() # doctest: +SKIP
868868
b'Hello from the cloud!'
869869

870870
The provision of the protocol specifier "s3://" will select the correct backend.
871871
Notice the kwargs ``storage_options``, used to pass parameters to that backend.
872872

873-
As of version 2.6, write mode and complex URLs are also supported, such that in::
873+
As of version 2.6, write mode and complex URLs are also supported, such as::
874874

875875
>>> g = zarr.open_group("simplecache::s3://zarr-demo/store",
876-
... storage_options={"s3": {'anon': True}})
877-
>>> g['foo/bar/baz'][:].tobytes() # downloads target file
876+
... storage_options={"s3": {'anon': True}}) # doctest: +SKIP
877+
>>> g['foo/bar/baz'][:].tobytes() # downloads target file # doctest: +SKIP
878878
b'Hello from the cloud!'
879-
>>> g['foo/bar/baz'][:].tobytes() # uses cached file
879+
>>> g['foo/bar/baz'][:].tobytes() # uses cached file # doctest: +SKIP
880880
b'Hello from the cloud!'
881881

882882
The second invocation here will be much faster. Note that the ``storage_options``

0 commit comments

Comments
 (0)