Skip to content

Commit 31641ef

Browse files
committed
fix test tol
1 parent e8429bb commit 31641ef

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/python/linalg/givens_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,14 @@ def test_givens_decomposition_slater_compressed_near_identity_trims_when_binding
421421
"""When the budget is below the exact count, trim to exactly the budget."""
422422
norb, nocc = 8, 4
423423
scale = 1e-3
424-
tol = 10 * scale
424+
tol = 1e-12
425425
coeffs = expm(1j * scale * ffsim.random.random_hermitian(norb, seed=RNG)).T[
426426
list(range(nocc))
427427
]
428428

429429
exact = ffsim.linalg.givens_decomposition_slater(coeffs, tol=tol)
430430
n_existing = len(exact)
431-
if n_existing == 0:
432-
pytest.skip("decomposition already empty")
431+
assert n_existing > 0
433432

434433
max_givens = n_existing - 1
435434
rotations = ffsim.linalg.givens_decomposition_slater(

0 commit comments

Comments
 (0)