mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Fix leak test for subclassing
This commit is contained in:
@ -30,9 +30,8 @@ class DatabaseTest(unittest.TestCase):
|
|||||||
|
|
||||||
leak_test = True
|
leak_test = True
|
||||||
|
|
||||||
if leak_test:
|
def tearDown(self):
|
||||||
|
if self.leak_test:
|
||||||
def tearDown(self):
|
|
||||||
import gc
|
import gc
|
||||||
del self.cursor
|
del self.cursor
|
||||||
orphans = gc.collect()
|
orphans = gc.collect()
|
||||||
|
Reference in New Issue
Block a user