From 43cc8d4f6c6642cde3fefc549d063db13075be30 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 2 Oct 2023 17:43:05 -0700 Subject: [PATCH] test_state: assert popped value is the actual value (#1906) --- tests/test_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_state.py b/tests/test_state.py index c6537b55f..a3dc49cda 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -1658,7 +1658,7 @@ class BackgroundTaskState(State): async with self: # Methods on ImmutableMutableProxy should return their wrapped return value. - assert self.dict_list.pop("foo") is not None + assert self.dict_list.pop("foo") == [1, 2, 3] self.order.append("background_task:stop") self.other() # direct calling event handlers works in context