From 72f10ca64e4d7afb471f959a2b7e4439c9b6429e Mon Sep 17 00:00:00 2001 From: LilSpazJoekp <15524072+LilSpazJoekp@users.noreply.github.com> Date: Sun, 20 Aug 2023 14:07:34 -0500 Subject: [PATCH] Fix flake8 complaint --- tests/integration/models/reddit/test_widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/models/reddit/test_widgets.py b/tests/integration/models/reddit/test_widgets.py index 4e3bbf10d..62d14b67c 100644 --- a/tests/integration/models/reddit/test_widgets.py +++ b/tests/integration/models/reddit/test_widgets.py @@ -773,7 +773,7 @@ def test_sidebar(self, reddit): # all items should be Widget subclasses assert all( - isinstance(widget, Widget) and type(widget) != Widget + isinstance(widget, Widget) and type(widget) is not Widget for widget in widgets.sidebar ) @@ -790,7 +790,7 @@ def test_topbar(self, reddit): widgets = subreddit.widgets assert 1 <= len(widgets.topbar) assert all( - isinstance(widget, Widget) and type(widget) != Widget + isinstance(widget, Widget) and type(widget) is not Widget for widget in widgets.topbar )