8000 [3.8] gh-80254: Disallow recursive usage of cursors in sqlite3 converters by erlend-aasland · Pull Request #92333 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.8] gh-80254: Disallow recursive usage of cursors in sqlite3 converters #92333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explicitly free resources at test tearDown()
  • Loading branch information
erlend-aasland committed May 5, 2022
commit 88b09dcd34ab00104d6a68ceb134357dc183970d
2 changes: 2 additions & 0 deletions Lib/sqlite3/test/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ def setUp(self):
def tearDown(self):
self.cur.close()
self.con.close()
del self.cur
del self.con

def test_recursive_cursor_init(self):
conv = lambda x: self.cur.__init__(self.con)
Expand Down
0