From 7d2f8adf942b4579bc3fe28bc1ade7b26444e8b6 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 17 Jul 2023 11:12:21 +0100 Subject: [PATCH] tests: trace N=1 exception tested. --- tests/correlators_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 77f35b27..0502462c 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -668,6 +668,10 @@ def test_matrix_trace(): assert el == 0 + with pytest.raises(ValueError): + corr.item(0, 0).trace() + + def test_corr_roll(): T = 4 rn = lambda : np.random.normal(0.5, 0.1)