From effcae27e9caaa8696ac0d8ba54c1cba3cd16f61 Mon Sep 17 00:00:00 2001 From: Lindy Date: Wed, 4 Dec 2024 10:36:10 -0500 Subject: [PATCH] Ignore workflow failures by adding suppress_health_check - add suppress_health_check to test_equality function in test_game.py to prevent workflow failure in Github remote. --- axelrod/tests/unit/test_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axelrod/tests/unit/test_game.py b/axelrod/tests/unit/test_game.py index 083431e22..5e4358b1d 100644 --- a/axelrod/tests/unit/test_game.py +++ b/axelrod/tests/unit/test_game.py @@ -1,7 +1,7 @@ import unittest import numpy as np -from hypothesis import given, settings +from hypothesis import given, settings, HealthCheck from hypothesis.extra.numpy import array_shapes, arrays from hypothesis.strategies import integers @@ -123,7 +123,7 @@ def test_random_repr(self, asymgame): self.assertEqual(expected_repr, str(asymgame)) @given(asymgame1=asymmetric_games(), asymgame2=asymmetric_games()) - @settings(max_examples=5) + @settings(max_examples=5, suppress_health_check=HealthCheck.too_slow) def test_equality(self, asymgame1, asymgame2): """Tests equality of AsymmetricGames based on their matrices.""" self.assertFalse(asymgame1 == "foo")