Skip to content

Commit

Permalink
== -> is
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington committed Jun 18, 2024
1 parent e87d51a commit 78921b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/_tests/util/test_action_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78921b5

Please sign in to comment.