From ff03d8a06ce899c1bacc633c7ceeb7b97dafec63 Mon Sep 17 00:00:00 2001 From: campioru Date: Sat, 18 Oct 2025 19:07:43 +0100 Subject: [PATCH] test/correlators_test.py: Adding test for updated prune method. Closes #271 --- tests/correlators_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index cb8517fa..cd629275 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -800,8 +800,7 @@ def test_prune_with_Nones(): tmp_corr = unpadded_corr.prune(Ntrunc, t0proj=t0proj-front_padding, tproj=tproj-front_padding) pruned_then_padded = pe.Corr(tmp_corr.content, padding=[front_padding, back_padding]) - with pytest.raises(ValueError): - padded_then_pruned = padded_corr.prune(Ntrunc, t0proj=t0proj, tproj=tproj) + padded_then_pruned = padded_corr.prune(Ntrunc, t0proj=t0proj, tproj=tproj) for t in range(T): assert np.all(pruned_then_padded.content[t] == padded_then_pruned.content[t])