Skip to content

Commit ff03d8a

Browse files
committed
test/correlators_test.py: Adding test for updated prune method.
Closes #271
1 parent bff1e4c commit ff03d8a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎tests/correlators_test.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,7 @@ def test_prune_with_Nones():
800800

801801
tmp_corr = unpadded_corr.prune(Ntrunc, t0proj=t0proj-front_padding, tproj=tproj-front_padding)
802802
pruned_then_padded = pe.Corr(tmp_corr.content, padding=[front_padding, back_padding])
803-
with pytest.raises(ValueError):
804-
padded_then_pruned = padded_corr.prune(Ntrunc, t0proj=t0proj, tproj=tproj)
803+
padded_then_pruned = padded_corr.prune(Ntrunc, t0proj=t0proj, tproj=tproj)
805804

806805
for t in range(T):
807806
assert np.all(pruned_then_padded.content[t] == padded_then_pruned.content[t])

0 commit comments

Comments
 (0)