From 556f4e06f82c0a4ecca33366ef41e95d8a39eb8d Mon Sep 17 00:00:00 2001 From: darksidecat Date: Sun, 26 Jun 2022 18:24:17 +0300 Subject: [PATCH] use `!=` instead of 'not x == y' in tests --- tests/test_dispatcher/test_filters/test_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dispatcher/test_filters/test_state.py b/tests/test_dispatcher/test_filters/test_state.py index 1e68346e..28bd578f 100644 --- a/tests/test_dispatcher/test_filters/test_state.py +++ b/tests/test_dispatcher/test_filters/test_state.py @@ -68,7 +68,7 @@ class TestStateFilter: assert "SG:state" == SG.state assert State() == State() - assert not SG.state == 1 + assert SG.state != 1 states = {SG.state: "OK"} assert states.get(copy(SG.state)) == "OK"