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