Commit e3b77675 authored by André Anjos's avatar André Anjos

Makes sure we can load/save files with arbitrary extensions

parent 8cbe67e3
Pipeline #16693 passed with stage
in 14 minutes and 32 seconds
......@@ -101,10 +101,10 @@ def test_can_save():
os.unlink(tmp)
def test_can_save_hdf5():
def run_for_extension(ext):
machine = Machine(HEART_MACHINE)
tmp = tempname('.hdf5')
tmp = tempname(ext)
machine.save(bob.io.base.HDF5File(tmp, 'w'))
del machine
......@@ -123,6 +123,15 @@ def test_can_save_hdf5():
os.unlink(tmp)
def test_can_save_arbitrary():
run_for_extension('.arbitrary')
def test_can_save_h5():
run_for_extension('.h5')
def test_can_save_hdf5():
run_for_extension('.hdf5')
def test_data_loading():
#tests if I can load data in libsvm format using SVMFile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment