Skip to content

Commit 95f2ed2

Browse files
committed
Fix Moran exception test
1 parent 43f6ab8 commit 95f2ed2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

axelrod/tests/unit/test_moran.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def test_mutation_method_exception(self):
407407
cycle_length = 5
408408
players = [axelrod.EvolvableCycler(cycle_length=cycle_length)
409409
for _ in range(5)]
410-
self.assertRaises(ValueError, MoranProcess(players, turns=10, mutation_method="random"))
410+
with self.assertRaises(ValueError):
411+
MoranProcess(players, turns=10, mutation_method="random")
411412

412413

413414
class GraphMoranProcess(unittest.TestCase):

0 commit comments

Comments
 (0)