Skip to content

Commit

Permalink
Ignore workflow failures by adding suppress_health_check
Browse files Browse the repository at this point in the history
- add suppress_health_check to test_equality function in test_game.py to prevent workflow failure in Github remote.
  • Loading branch information
LindyZh committed Dec 4, 2024
1 parent 224b62b commit effcae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axelrod/tests/unit/test_game.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit effcae2

Please sign in to comment.