def setUpClass(cls): cls.con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES) if cls.con.execute("pragma table_info(test)").fetchall(): cls.con.execute("drop table test") sqlite.register_converter("bin", BinaryConverterTests.convert)
def setUp(self): self.con = sqlite.connect(detect_types=sqlite.PARSE_COLNAMES) sqlite.register_converter("bin", BinaryConverterTests.convert)