File tree Expand file tree Collapse file tree 3 files changed +26
-13
lines changed
nipype/interfaces/utility Expand file tree Collapse file tree 3 files changed +26
-13
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33# vi: set ft=python sts=4 ts=4 sw=4 et:
4- """Various utilities
4+ """
5+ Various utilities
56
67 Change directory to provide relative paths for doctests
7- >>> import os
8- >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9- >>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
10- >>> os.chdir(datadir)
8+
9+ .. testsetup::
10+ import os
11+ filepath = os.path.dirname( os.path.realpath( __file__ ) )
12+ datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
13+ os.chdir(datadir)
14+
15+
1116"""
1217from __future__ import print_function , division , unicode_literals , absolute_import
1318from builtins import range
Original file line number Diff line number Diff line change 44"""CSV Handling utilities
55
66 Change directory to provide relative paths for doctests
7- >>> import os
8- >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9- >>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
10- >>> os.chdir(datadir)
7+
8+ .. testsetup::
9+ import os
10+ filepath = os.path.dirname( os.path.realpath( __file__ ) )
11+ datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
12+ os.chdir(datadir)
13+
14+
1115"""
1216from __future__ import print_function , division , unicode_literals , absolute_import
1317from builtins import zip , range , str , open
Original file line number Diff line number Diff line change 44"""Various utilities
55
66 Change directory to provide relative paths for doctests
7- >>> import os
8- >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
9- >>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
10- >>> os.chdir(datadir)
7+
8+ .. testsetup::
9+ import os
10+ filepath = os.path.dirname( os.path.realpath( __file__ ) )
11+ datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
12+ os.chdir(datadir)
13+
14+
1115"""
1216from __future__ import print_function , division , unicode_literals , absolute_import
1317
You can’t perform that action at this time.
0 commit comments