From 301af23749c12e39d8a8553aec2dddea84eb26bf Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 19 Feb 2023 18:27:32 -0500 Subject: [PATCH] Replace 'called_with' with 'assert_called_with'. --- test_functools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_functools.py b/test_functools.py index ccc192d..6be2d7f 100644 --- a/test_functools.py +++ b/test_functools.py @@ -214,7 +214,7 @@ def test_cleanup_called_on_exception(self): self.set_to_fail(times=calls) retry_call(self.attempt, retries=calls, cleanup=cleanup, trap=Exception) assert cleanup.call_count == calls - assert cleanup.called_with() + cleanup.assert_called_with() def test_infinite_retries(self): self.set_to_fail(times=999)