From a52b8fa3daacc48108b4b6582dfa4dd2b8074d9f Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 5 Apr 2016 14:54:22 +0800 Subject: [PATCH] test_h5types: use in-memory files --- .gitignore | 2 -- artiq/test/test_h5types.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7f4156d25..4a2ff4fa4 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/artiq/test/test_h5types.py b/artiq/test/test_h5types.py index 4a3b1ca19..0b771a92d 100644 --- a/artiq/test/test_h5types.py +++ b/artiq/test/test_h5types.py @@ -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)