Skip to content

Commit 3c9316a

Browse files
committed
Merge pull request #1497 from shoshber/ubuntutest
TST little testing adjustments
2 parents 53cf6f8 + f56ab1b commit 3c9316a

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

nipype/__init__.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,10 @@ def test(self, label='fast', verbose=1, extra_argv=['--exe'],
5555
test = _NoseTester().test
5656
del nosetester
5757

58-
59-
def _test_local_install():
60-
""" Warn the user that running with nipy being
61-
imported locally is a bad idea.
62-
"""
63-
if os.getcwd() == os.sep.join(
64-
os.path.abspath(__file__).split(os.sep)[:-2]):
65-
import warnings
66-
warnings.warn('Running the tests from the install directory may '
67-
'trigger some failures')
68-
69-
_test_local_install()
70-
7158
# Set up package information function
7259
from .pkg_info import get_pkg_info as _get_pkg_info
7360
get_info = lambda: _get_pkg_info(os.path.dirname(__file__))
7461

75-
# Cleanup namespace
76-
del _test_local_install
77-
7862
# If this file is exec after being imported, the following lines will
7963
# fail
8064
try:

nipype/interfaces/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,8 +2458,8 @@ class JSONFileGrabber(IOBase):
24582458
{'param1': 'overrideMe', 'param3': 1.0}
24592459
>>> jsonSource.inputs.in_file = 'jsongrabber.txt'
24602460
>>> res = jsonSource.run()
2461-
>>> pprint.pprint(res.outputs.get()) # doctest: +NORMALIZE_WHITESPACE
2462-
{'param1': 'exampleStr', 'param2': 4, 'param3': 1.0}
2461+
>>> pprint.pprint(res.outputs.get()) # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
2462+
{'param1': ...'exampleStr', 'param2': 4, 'param3': 1.0}
24632463
24642464
24652465
"""

0 commit comments

Comments
 (0)