File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 3333from neo .test .rawiotest .tools import can_use_network
3434from neo .test .rawiotest .common_rawio_test import repo_for_test
3535from neo .utils import (download_dataset ,
36- get_local_testing_data_folder , HAVE_DATALAD )
36+ get_local_testing_data_folder )
3737
38+ try :
39+ import datalad
40+ HAVE_DATALAD = True
41+ except :
42+ HAVE_DATALAD = False
3843
3944from neo .test .iotest .tools import (cleanup_test_file ,
4045 close_object_safe , create_generic_io_object ,
Original file line number Diff line number Diff line change 2121import unittest
2222
2323from neo .utils .datasets import (download_dataset ,
24- get_local_testing_data_folder , HAVE_DATALAD , default_testing_repo )
24+ get_local_testing_data_folder , default_testing_repo )
2525
2626from neo .test .rawiotest .tools import can_use_network
2727
2828from neo .test .rawiotest import rawio_compliance as compliance
2929
30+ try :
31+ import datalad
32+ HAVE_DATALAD = True
33+ except :
34+ HAVE_DATALAD = False
3035
3136# url_for_tests = "https://portal.g-node.org/neo/" #This is the old place
3237repo_for_test = default_testing_repo
Original file line number Diff line number Diff line change 55import logging
66import os
77
8- from neo .utils import HAVE_DATALAD
9-
108logger = logging .getLogger ("neo.test" )
119
1210
1311def can_use_network ():
1412 """
1513 Return True if network access is allowed
1614 """
15+ try :
16+ import datalad
17+ HAVE_DATALAD = True
18+ except :
19+ HAVE_DATALAD = False
20+
1721 if not HAVE_DATALAD :
1822 return False
1923 if os .environ .get ('NOSETESTS_NO_NETWORK' , False ):
You can’t perform that action at this time.
0 commit comments