From 47456b35a7065b1363d95603b145bb847e59f84e Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Sat, 25 Jan 2014 22:19:03 +0100 Subject: [PATCH] Fix type comparison to isinstance check --- test/test_persistence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_persistence.py b/test/test_persistence.py index d9a7bab..696f746 100644 --- a/test/test_persistence.py +++ b/test/test_persistence.py @@ -249,7 +249,7 @@ class TableTestCase(unittest.TestCase): tbl = self.tbl tbl.create_column('foo', FLOAT) assert 'foo' in tbl.table.c, tbl.table.c - assert FLOAT == type(tbl.table.c['foo'].type), tbl.table.c['foo'].type + assert isinstance(tbl.table.c['foo'].type, FLOAT), tbl.table.c['foo'].type assert 'foo' in tbl.columns, tbl.columns def test_key_order(self):