From dce1abd6d70c286ba21ad0867326a1af4320dbf9 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Thu, 24 Mar 2022 23:03:25 -0500 Subject: [PATCH] tests failed proving the addition is needed as backport #58 --- tests/unit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/utils.py b/tests/unit/utils.py index 68d0fc33f..a7ab7c565 100644 --- a/tests/unit/utils.py +++ b/tests/unit/utils.py @@ -253,7 +253,7 @@ def _get_tester_for(self, column_type): return agate.TimeDelta() for instance in agate_helper.DEFAULT_TYPE_TESTER._possible_types: - if type(instance) is column_type: + if isinstance(instance, column_type): return instance raise ValueError(f'no tester for {column_type}')