Skip to content

Commit b312460

Browse files
committed
Adding classification long_run_time
1 parent 43c38b4 commit b312460

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

axelrod/strategies/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class EvolvedAttention(Player):
344344
classifier = {
345345
"memory_depth": MEMORY_LENGTH,
346346
"stochastic": False,
347-
"long_run_time": False,
347+
"long_run_time": True,
348348
"inspects_source": False,
349349
"manipulates_source": False,
350350
"manipulates_state": False,

axelrod/tests/unit/test_classification.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def test_inclusion_of_strategy_lists(self):
303303
def test_long_run_strategies(self):
304304
long_run_time_strategies = [
305305
axl.DBS,
306+
axl.EvolvedAttention,
306307
axl.MetaMajority,
307308
axl.MetaMajorityFiniteMemory,
308309
axl.MetaMajorityLongMemory,

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ deps =
2525
pytest-cov
2626
pytest-randomly
2727
pytest-sugar
28+
pytest-xdist
2829
isort
2930
black
3031
numpy==1.26.4
3132
torch==2.6.0
3233
mypy
3334
types-setuptools
3435
commands =
35-
python -m pytest --cov-report term-missing --cov=axelrod --cov-fail-under=100 . --doctest-glob="*.md" --doctest-glob="*.rst"
36+
python -m pytest --cov-report term-missing --cov=axelrod --cov-fail-under=100 -n auto . --doctest-glob="*.md" --doctest-glob="*.rst"
3637
python -m black -l 80 . --check
3738
python -m isort --check-only axelrod/.
3839
python run_mypy.py

0 commit comments

Comments
 (0)