From e48212b29c6709ae973919ce992183137a17da18 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:41:12 +0100 Subject: [PATCH] REVERT: change back to `CI` variable for hash --- tests/sympy/test_cache.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/sympy/test_cache.py b/tests/sympy/test_cache.py index 2303acd4..a69c4fe4 100644 --- a/tests/sympy/test_cache.py +++ b/tests/sympy/test_cache.py @@ -1,6 +1,7 @@ from __future__ import annotations import logging +import os import sys from typing import TYPE_CHECKING, ClassVar @@ -18,6 +19,9 @@ from qrules.transition import SpinFormalism +_GH = "CI" in os.environ and os.uname().sysname != "Darwin" + + @pytest.mark.parametrize( ("expected_hash", "assumptions"), [ @@ -88,8 +92,8 @@ def test_reaction(self, expected_hash: str, formalism: SpinFormalism): @pytest.mark.parametrize( ("expected_hash", "formalism"), [ - ("01bb112", "canonical-helicity"), - ("0638a0e", "helicity"), + ("87c4839" if _GH else "01bb112", "canonical-helicity"), + ("c147bdd" if _GH else "0638a0e", "helicity"), ], ids=["canonical-helicity", "helicity"], )