diff --git a/tests/algorithms/symmetry/cosym/test_cosym_target.py b/tests/algorithms/symmetry/cosym/test_cosym_target.py index 47e840869a..e82a65f93f 100644 --- a/tests/algorithms/symmetry/cosym/test_cosym_target.py +++ b/tests/algorithms/symmetry/cosym/test_cosym_target.py @@ -50,5 +50,5 @@ def test_cosym_target(space_group): g = t.compute_gradients(minimizer.coords) g_fd = t.compute_gradients_fd(minimizer.coords) assert f < f0 - assert pytest.approx(g, abs=1e-3) == [0] * len(g) - assert pytest.approx(g_fd, abs=1e-3) == [0] * len(g) + assert pytest.approx(list(g), abs=2e-3) == [0] * len(g) + assert pytest.approx(g_fd, abs=2e-3) == [0] * len(g)