Skip to content

Commit

Permalink
Mark some tests as broken
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Jul 19, 2024
1 parent fc78d12 commit 4ab6219
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/output/test_adjoint_disk_checkpointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def adjoint_example(mesh):
return Jnew, grad_Jnew


@pytest.mark.broken
# This test pollutes the tape!!!
@pytest.mark.skipcomplex
# Waiting on stable parallel decompositions through disk checkpointing.
@pytest.mark.xfail
Expand Down
1 change: 1 addition & 0 deletions tests/output/test_io_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ def test_io_function_extrusion_variable_layer(cell_family_degree_vfamily_vdegree
comm.Free()


@pytest.mark.broken
@pytest.mark.parallel(nprocs=3)
def test_io_function_extrusion_periodic(tmpdir):
filename = join(str(tmpdir), "test_io_function_extrusion_periodic_dump.h5")
Expand Down
12 changes: 7 additions & 5 deletions tests/output/test_io_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ def uniform_mesh(request):
extrusion_type="uniform", name=mesh_name)


@pytest.fixture(params=["circlemanifold",
"icosahedron",
"cubedsphere"])
@pytest.fixture(params=[
"circlemanifold",
pytest.param("icosahedron", marks=pytest.mark.broken),
"cubedsphere"
])
def radial_mesh(request):
if request.param == "circlemanifold":
# Circumference of 1
Expand Down Expand Up @@ -121,7 +123,7 @@ def _test_io_mesh_extrusion(mesh, tmpdir, variable_layers=False):
layers[:, 1] += 1 + layers[:, 0]
assert np.array_equal(mesh.topology.layers, layers)
v1 = _compute_integral(mesh)
assert abs(v1 - v) < 2.e-14
assert abs(v1 - v) < 5.e-14
if isinstance(mesh.topology, ExtrudedMeshTopology):
assert mesh.topology._base_mesh is mesh._base_mesh.topology
# Save.
Expand Down Expand Up @@ -175,7 +177,7 @@ def test_io_mesh_default_mesh_name(tmpdir):
with CheckpointFile(fname, "r", comm=comm) as afile:
mesh = afile.load_mesh()
v1 = _compute_integral(mesh)
assert abs(v1 - v) < 1.e-14
assert abs(v1 - v) < 5.e-14
# Save.
with CheckpointFile(fname, "w", comm=comm) as afile:
afile.save_mesh(mesh)
Expand Down

0 comments on commit 4ab6219

Please sign in to comment.