summaryrefslogtreecommitdiff
path: root/silx/app/test/test_convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/app/test/test_convert.py')
-rw-r--r--silx/app/test/test_convert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/app/test/test_convert.py b/silx/app/test/test_convert.py
index bb1ae99..857f30c 100644
--- a/silx/app/test/test_convert.py
+++ b/silx/app/test/test_convert.py
@@ -40,7 +40,7 @@ import h5py
import silx
from .. import convert
from silx.utils import testutils
-
+from silx.io.utils import h5py_read_dataset
# content of a spec file
@@ -137,7 +137,7 @@ class TestConvertCommand(unittest.TestCase):
self.assertTrue(os.path.isfile(h5name))
with h5py.File(h5name, "r") as h5f:
- title12 = h5f["/1.2/title"][()]
+ title12 = h5py_read_dataset(h5f["/1.2/title"])
if sys.version_info < (3, ):
title12 = title12.encode("utf-8")
self.assertEqual(title12,