Skip to content

Commit

Permalink
Merge pull request #323 from nno/_enh/surfing_test_remove_hdf5
Browse files Browse the repository at this point in the history
TST+ENH: use the filename provided by @with_tempfile decorator (Closes #322)
  • Loading branch information
yarikoptic committed May 22, 2015
2 parents 3b496c4 + 2cbb80e commit fde36c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mvpa2/tests/test_surfing.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def sum_ds(ds):
assert_array_equal(r.samples, m.samples)


@with_tempfile('.h5py', 'qe')
@with_tempfile('.h5py', '_qe')
def test_surf_queryengine(self, qefn):
s = surf.generate_plane((0, 0, 0), (0, 1, 0), (0, 0, 1), 4, 5)

Expand Down Expand Up @@ -908,10 +908,8 @@ def test_surf_queryengine(self, qefn):

# test i/o and ensure that the untrained instance is not trained
if externals.exists('h5py'):
fd, qefn = tempfile.mkstemp('qe.hdf5', 'test'); os.close(fd)
h5save(qefn, qe)
qe = h5load(qefn)
os.remove(qefn)


# untrained qe should give errors
Expand Down

0 comments on commit fde36c4

Please sign in to comment.