8000 Explicitly free resources at test tearDown() · python/cpython@8e5fe56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e5fe56

Browse files
Explicitly free resources at test tearDown()
1 parent 41a21db commit 8e5fe56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/sqlite3/test/regression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ def setUp(self):
431431
def tearDown(self):
432432
self.cur.close()
433433
self.con.close()
434+
del self.cur
435+
del self.con
434436

435437
def test_recursive_cursor_init(self):
436438
conv = lambda x: self.cur.__init__(self.con)

0 commit comments

Comments
 (0)
0