File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88import sys
99import warnings
1010
11- from nipype .interfaces .base import BaseInterface
12-
1311import black
1412
1513
@@ -182,6 +180,8 @@ def test_specs(self, uri):
182180 Returns
183181 -------
184182 """
183+ from nipype .interfaces .base import BaseInterface
184+
185185 # get the names of all classes and functions
186186 _ , classes = self ._parse_module (uri )
187187 if not classes :
@@ -324,7 +324,7 @@ def test_specs(self, uri):
324324 and "xor" not in trait .__dict__
325325 ):
326326 if (
327- trait .trait_type .__class__ .__name__ is "Range"
327+ trait .trait_type .__class__ .__name__ == "Range"
328328 and trait .default == trait .trait_type ._low
329329 ):
330330 continue
@@ -480,6 +480,7 @@ def check_modules(self):
480480
481481
482482if __name__ == "__main__" :
483+ os .environ ["NIPYPE_NO_ET" ] = "1"
483484 package = "nipype"
484485 ic = InterfaceChecker (package )
485486 # Packages that should not be included in generated API docs.
You can’t perform that action at this time.
0 commit comments