Skip to content

Commit 60a70b3

Browse files
committed
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.
1 parent 224b62b commit 60a70b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axelrod/tests/unit/test_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22

33
import numpy as np
4-
from hypothesis import given, settings
4+
from hypothesis import given, settings, HealthCheck
55
from hypothesis.extra.numpy import array_shapes, arrays
66
from hypothesis.strategies import integers
77

@@ -123,7 +123,7 @@ def test_random_repr(self, asymgame):
123123
self.assertEqual(expected_repr, str(asymgame))
124124

125125
@given(asymgame1=asymmetric_games(), asymgame2=asymmetric_games())
126-
@settings(max_examples=5)
126+
@settings(max_examples=5, suppress_health_check=(HealthCheck.too_slow,))
127127
def test_equality(self, asymgame1, asymgame2):
128128
"""Tests equality of AsymmetricGames based on their matrices."""
129129
self.assertFalse(asymgame1 == "foo")

0 commit comments

Comments
 (0)