Skip to content

Commit

Permalink
(pylint) == -> is (#18207)
Browse files Browse the repository at this point in the history
`==` -> `is`
  • Loading branch information
Quexington authored Jun 20, 2024
1 parent e0c36e8 commit ff30678
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 ff30678

Please sign in to comment.