File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
import sqlite3 as sqlite
26
26
import sys
27
27
28
+ from test .support import gc_collect
28
29
from test .support .os_helper import TESTFN , unlink
29
30
30
31
@@ -174,8 +175,7 @@ def test_in_transaction_ro(self):
174
175
class OpenTests (unittest .TestCase ):
175
176
def tearDown (self ):
176
177
# bpo-42213: ensure that TESTFN is closed before unlinking
177
- import gc
178
- gc .collect ()
178
+ gc_collect ()
179
179
unlink (TESTFN )
180
180
181
181
def test_open_with_path_like_object (self ):
Original file line number Diff line number Diff line change 23
23
import unittest
24
24
import sqlite3 as sqlite
25
25
26
+ from test .support import gc_collect
26
27
from test .support .os_helper import TESTFN , unlink
27
28
28
29
@@ -264,8 +265,7 @@ def trace(statement):
264
265
# bpo-42213: ensure that TESTFN is closed before the cleanup runs
265
266
con1 .close ()
266
267
con2 .close ()
267
- import gc
268
- gc .collect ()
268
+ gc_collect ()
269
269
270
270
271
271
def suite ():
You can’t perform that action at this time.
0 commit comments