Skip to content

Commit

Permalink
Always skip saver to avoid creating files
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenDS9 committed Mar 7, 2023
1 parent 7d9e315 commit 438f5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,9 @@
doctest_test_doctest_blocks = ""

doctest_global_setup = """
import os
import torch
from torchdata.datapipes.iter import IterableWrapper, FileLister, FileOpener
seperator_is_slash = os.sep == "/"
io_doctest = True
try:
Expand Down
4 changes: 2 additions & 2 deletions torchdata/datapipes/iter/util/saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SaverIterDataPipe(IterDataPipe[str]):
Example:
.. testcode::
:skipif: not seperator_is_slash
:skipif: io_doctest
import os
Expand All @@ -42,7 +42,7 @@ def filepath_fn(name: str) -> str:
print(list(saver_dp))
.. testoutput::
:skipif: not seperator_is_slash
:skipif: io_doctest
['./1.txt', './2.txt', './3.txt']
Expand Down

0 comments on commit 438f5a7

Please sign in to comment.