Skip to content

Commit

Permalink
Replace deprecated unittest method
Browse files Browse the repository at this point in the history
  • Loading branch information
marcharper committed Mar 8, 2024
1 parent 0a31904 commit 90ba184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axelrod/tests/unit/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_classifier_works_on_non_instances(self):
warnings.simplefilter("default", category=UserWarning)
with warnings.catch_warnings(record=True) as w:
self.assertEqual(Classifiers["memory_depth"](axl.TitForTat), 1)
self.assertEquals(len(w), 1)
self.assertEqual(len(w), 1)

def test_key_error_on_uknown_classifier(self):
with self.assertRaises(KeyError):
Expand Down

0 comments on commit 90ba184

Please sign in to comment.