Skip to content

Commit 35e8c45

Browse files
Merge pull request #1354 from caddycarine/master
Modify test to ensure that all strategies have names
2 parents 8793e58 + 1d1bca8 commit 35e8c45

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
@@ -42,7 +42,7 @@ strategy's logic as default, we use :code:`Classifiers[<classifier>](
4242
<strategy>)`::
4343

4444
>>> from axelrod import Classifiers
45-
>>> Classifiers['memory_depth'](axl.TitForTat)
45+
>>> Classifiers['memory_depth'](axl.TitForTat())
4646
1
4747
>>> Classifiers['stochastic'](axl.Random())
4848
True

0 commit comments

Comments
 (0)