Skip to content

Commit 737cd71

Browse files
committed
ENH: make dft tests independent of current path
Also move test data into common path. (compressed data size is 25k per file).
1 parent 2262678 commit 737cd71

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
File renamed without changes.
File renamed without changes.

nibabel/tests/test_dft.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
""" Testing dft
22
"""
33

4+
from os.path import join as pjoin, dirname
45
import StringIO
56
import PIL.Image
67
from nose.tools import assert_true, assert_false, assert_equal, assert_raises
78
from .. import dft
89
from .. import nifti1
910

10-
data_dir = 'dft_test_data/td'
11+
data_dir = pjoin(dirname(__file__), 'data')
1112

1213
def test_init():
1314
dft.clear_cache()

0 commit comments

Comments
 (0)