Skip to content

TST little testing adjustments #1497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions nipype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,10 @@ def test(self, label='fast', verbose=1, extra_argv=['--exe'],
test = _NoseTester().test
del nosetester


def _test_local_install():
""" Warn the user that running with nipy being
imported locally is a bad idea.
"""
if os.getcwd() == os.sep.join(
os.path.abspath(__file__).split(os.sep)[:-2]):
import warnings
warnings.warn('Running the tests from the install directory may '
'trigger some failures')

_test_local_install()

# Set up package information function
from .pkg_info import get_pkg_info as _get_pkg_info
get_info = lambda: _get_pkg_info(os.path.dirname(__file__))

# Cleanup namespace
del _test_local_install

# If this file is exec after being imported, the following lines will
# fail
try:
Expand Down
4 changes: 2 additions & 2 deletions nipype/interfaces/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2458,8 +2458,8 @@ class JSONFileGrabber(IOBase):
{'param1': 'overrideMe', 'param3': 1.0}
>>> jsonSource.inputs.in_file = 'jsongrabber.txt'
>>> res = jsonSource.run()
>>> pprint.pprint(res.outputs.get()) # doctest: +NORMALIZE_WHITESPACE
{'param1': 'exampleStr', 'param2': 4, 'param3': 1.0}
>>> pprint.pprint(res.outputs.get()) # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
{'param1': ...'exampleStr', 'param2': 4, 'param3': 1.0}


"""
Expand Down