Skip to content

Commit a36040e

Browse files
committed
Test 'test_all_strategies_have_names' is always passed because when a strategy has no name, it adopts the name attribute from the 'Player' class.
1 parent 894ebb7 commit a36040e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

axelrod/tests/integration/test_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class TestNames(unittest.TestCase):
77
def test_all_strategies_have_names(self):
8-
names = [s.name for s in axl.all_strategies if s.name]
8+
names = [s.name for s in axl.all_strategies if s.name != 'Player']
99
self.assertEqual(len(names), len(axl.all_strategies))
1010

1111
def test_all_names_are_unique(self):

docs/tutorials/advanced/classification_of_strategies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ strategy's logic as default, we use :code:`Classifiers[<classifier>](
4343
<strategy>)`::
4444

4545
>>> from axelrod import Classifiers
46-
>>> Classifiers['memory_depth'](axl.TitForTat)
46+
>>> Classifiers['memory_depth'](axl.TitForTat())
4747
1
4848
>>> Classifiers['stochastic'](axl.Random())
4949
True

0 commit comments

Comments
 (0)