Open mrzhangboss opened 5 years ago
If you try delete self.mmm
and collect the garbage, it's ok
def testFatherChange(self):
# gc.collect()
self.doOtherThing()
del self.mmm
gc.collect()
factory = CommonModelFactory(default_db_url=DBU, use_foreign_key=False)
d3 = {'new': "aa"}
m3 = factory.from_json(data=d3, root_name='bbq')
m3.create_tables_in_db()
m3.store(data=d3)
m3.delete_tables_in_db()
I meet a interest bug. When debug is fine, it run error.I guess it maybe garbage problem.Because I add force
gc.collect()
, this bug disappear.I try use a simple test to reproduce this issue.I guesssqlalchemy
save some meta info to raise this problem.