From 19921ae7a8ca6873161fc91b6e087706e8a4da30 Mon Sep 17 00:00:00 2001 From: Jan Pieter Waagmeester Date: Tue, 17 Oct 2023 11:00:42 +0200 Subject: [PATCH] Fix flake8 errors on type comparison --- tests/columns/test_timecolumn.py | 2 +- tests/columns/test_urlcolumn.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/columns/test_timecolumn.py b/tests/columns/test_timecolumn.py index 3b9ed493..d444ab4c 100644 --- a/tests/columns/test_timecolumn.py +++ b/tests/columns/test_timecolumn.py @@ -34,7 +34,7 @@ class Table(tables.Table): class Meta: model = TimeModel - assert type(Table.base_columns["field"]) == tables.TimeColumn + assert type(Table.base_columns["field"]) is tables.TimeColumn def test_value_returns_a_raw_value_without_html(self): class Table(tables.Table): diff --git a/tests/columns/test_urlcolumn.py b/tests/columns/test_urlcolumn.py index afcac5ca..b8a03052 100644 --- a/tests/columns/test_urlcolumn.py +++ b/tests/columns/test_urlcolumn.py @@ -35,7 +35,7 @@ class Table(tables.Table): class Meta: model = URLModel - assert type(Table.base_columns["field"]) == tables.URLColumn + assert type(Table.base_columns["field"]) is tables.URLColumn def test_text_can_be_overridden(self): class Table(tables.Table):