Skip to content

Commit 8022169

Browse files
committed
Adding deadline=none for testMatchOutcomes which can exceed default timeout
1 parent 4d7a1dc commit 8022169

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

axelrod/tests/integration/test_matches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TestMatchOutcomes(unittest.TestCase):
2929
),
3030
turns=integers(min_value=1, max_value=20),
3131
)
32-
@settings(max_examples=5)
32+
@settings(max_examples=5, deadline=None)
3333
def test_outcome_repeats(self, strategies, turns):
3434
"""A test that if we repeat 3 matches with deterministic and well
3535
behaved strategies then we get the same result"""

test_outputs/classifier_test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Cooperator:
2-
name: Cooperator
3-
Defector:
4-
name: Defector
1+
Cooperator:
2+
name: Cooperator
3+
Defector:
4+
name: Defector

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ deps =
3333
mypy
3434
types-setuptools
3535
commands =
36-
python -m pytest --cov-report term-missing --cov=axelrod --cov-fail-under=100 -n auto . --doctest-glob="*.md" --doctest-glob="*.rst"
36+
python -m pytest -v --cov-report term-missing --cov=axelrod --cov-fail-under=100 -n 4 . --doctest-glob="*.md" --doctest-glob="*.rst" --durations=0
3737
python -m black -l 80 . --check
3838
python -m isort --check-only axelrod/.
3939
python run_mypy.py

0 commit comments

Comments
 (0)