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 138271e936
commit a52b8fa3da
2 changed files with 1 additions and 3 deletions

2
.gitignore vendored
View File

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

View File

@ -21,5 +21,5 @@ class TypesCase(unittest.TestCase):
for size in 16, 32, 64:
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)