From 78921b5f81e8a79139919c1cb3a2b524328fd4ca Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 18 Jun 2024 14:20:37 -0700 Subject: [PATCH] `==` -> `is` --- chia/_tests/util/test_action_scope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia/_tests/util/test_action_scope.py b/chia/_tests/util/test_action_scope.py index c8fe9add714b..56ee3c1ec23c 100644 --- a/chia/_tests/util/test_action_scope.py +++ b/chia/_tests/util/test_action_scope.py @@ -29,7 +29,7 @@ async def default_async_callback(interface: StateInterface[TestSideEffects]) -> def test_set_callback() -> None: state_interface = StateInterface(TestSideEffects(), True) state_interface.set_callback(default_async_callback) - assert state_interface._callback == default_async_callback + assert state_interface._callback is default_async_callback state_interface_no_callbacks = StateInterface(TestSideEffects(), False) with pytest.raises(RuntimeError, match="Callback cannot be edited from inside itself"): state_interface_no_callbacks.set_callback(None)