forked from M-Labs/artiq
1
0
Fork 0

test_h5types: use in-memory files

This commit is contained in:
Robert Jördens 2016-04-05 14:54:22 +08:00
parent fbe89c8f25
commit 7a5b3a1167
2 changed files with 1 additions and 3 deletions

2
.gitignore vendored
View File

@ -17,7 +17,6 @@ __pycache__/
/misoc_*/ /misoc_*/
/artiq/test/results /artiq/test/results
/artiq/test/h5types.h5
/artiq/examples/master/results /artiq/examples/master/results
/artiq/examples/master/last_rid.pyon /artiq/examples/master/last_rid.pyon
/artiq/examples/master/dataset_db.pyon /artiq/examples/master/dataset_db.pyon
@ -31,5 +30,4 @@ __pycache__/
/last_rid.pyon /last_rid.pyon
/dataset_db.pyon /dataset_db.pyon
/device_db.pyon /device_db.pyon
/h5types.h5
/test*.py /test*.py

View File

@ -21,5 +21,5 @@ class TypesCase(unittest.TestCase):
for size in 16, 32, 64: for size in 16, 32, 64:
d["f"+str(size)] = getattr(np, "float" + str(size))(42) d["f"+str(size)] = getattr(np, "float" + str(size))(42)
with h5py.File("h5types.h5", "w") as f: with h5py.File("h5types.h5", "w", "core", backing_store=False) as f:
result_dict_to_hdf5(f, d) result_dict_to_hdf5(f, d)