From da399ee2e267634ad2a6721698223e240c05ac6b Mon Sep 17 00:00:00 2001 From: Matthew Silverman Date: Fri, 6 Dec 2024 22:15:47 +0000 Subject: [PATCH] undo xfail --- tests/decoders/test_decoder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/decoders/test_decoder.py b/tests/decoders/test_decoder.py index e22b1929..eecc7757 100644 --- a/tests/decoders/test_decoder.py +++ b/tests/decoders/test_decoder.py @@ -196,8 +196,7 @@ def test_correction_check(self, enc_state): plane_parities = np.array(surface_dict[pl], dtype=bool) if len(plane_parities): # Check that parity along a plane is conserved. - if not (np.all(plane_parities) or np.all(plane_parities ^ 1)): - pytest.xfail("Parity is not conserved.") + assert np.all(plane_parities) or np.all(plane_parities ^ 1) if np.all(plane_parities ^ 1): failure_events += [1]