Skip to content

Commit cd5d64e

Browse files
committed
add check in tests to make sure env works
1 parent 3680012 commit cd5d64e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

neo/test/iotest/common_io_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def setUpClass(cls, *args, **kwargs):
115115
cls.io_readandwrite = list(set(cls.ioclass.readable_objects) & set(cls.ioclass.writeable_objects))
116116
# these objects can be either written or read
117117
cls.io_readorwrite = list(set(cls.ioclass.readable_objects) | set(cls.ioclass.writeable_objects))
118-
if HAVE_DATALAD:
118+
if HAVE_DATALAD and can_use_network():
119119
for remote_path in cls.entities_to_download:
120120
download_dataset(repo=repo_for_test, remote_path=remote_path)
121121

neo/test/rawiotest/common_rawio_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def setUp(self):
6565
"""
6666
self.shortname = self.rawioclass.__name__.lower().replace("rawio", "")
6767

68-
if HAVE_DATALAD:
68+
if HAVE_DATALAD and self.use_network:
6969
for remote_path in self.entities_to_download:
7070
download_dataset(repo=repo_for_test, remote_path=remote_path)
7171
else:

0 commit comments

Comments
 (0)