update test_gmsh.test_reference_file_readonly for cells: List(Cells)
@@ -137,19 +137,19 @@ def test_reference_file(filename, ref_sum, ref_num_cells, binary):
helpers.write_read(writer, meshio.gmsh.read, mesh, 1.0e-15)
-# @pytest.mark.parametrize(
-# "filename, ref_sum, ref_num_cells",
-# [("insulated-4.1.msh", 2.001762136876221, {"line": 21, "triangle": 111})],
-# )
-# def test_reference_file_readonly(filename, ref_sum, ref_num_cells):
-# this_dir = os.path.dirname(os.path.abspath(__file__))
-# filename = os.path.join(this_dir, "meshes", "msh", filename)
-#
-# mesh = meshio.read(filename)
-# tol = 1.0e-2
-# s = mesh.points.sum()
-# assert abs(s - ref_sum) < tol * ref_sum
-# assert {k: len(v) for k, v in mesh.cells.items()} == ref_num_cells
-# assert {
-# k: len(v["gmsh:physical"]) for k, v in mesh.cell_data.items()
-# } == ref_num_cells
+@pytest.mark.parametrize(
+ "filename, ref_sum, ref_num_cells",
+ [("insulated-4.1.msh", 2.001762136876221, {"line": 21, "triangle": 111})],
+)
+def test_reference_file_readonly(filename, ref_sum, ref_num_cells):
+ this_dir = os.path.dirname(os.path.abspath(__file__))
+ filename = os.path.join(this_dir, "meshes", "msh", filename)
+
+ mesh = meshio.read(filename)
+ tol = 1.0e-2
+ s = mesh.points.sum()
+ assert abs(s - ref_sum) < tol * ref_sum
+ assert {k: len(v) for k, v in mesh.cells_dict.items()} == ref_num_cells
+ assert {
+ k: len(v) for k, v in mesh.cell_data_dict["gmsh:physical"].items()
+ } == ref_num_cells
