Uh oh!
There was an error while loading. Please reload this page.
gh-105539: Explict resource management for connection objects in sqlite3 tests - #108017
Conversation
erlend-aasland
commented
Aug 16, 2023
This PR either uses the |
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
I would suggest moving memory_database() to a new utils.py file. For me, it's surprising that tests import other tests. See for example Lib/test/test_asyncio/utils.py.
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
Aug 16, 2023
I don't know the DB API, but I'm surprised that |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Move test utility functions to util.py - Use memory database mixin - Add check() helper for closed connection tests - Address other remarks by Nikita
erlend-aasland
commented
Aug 16, 2023
I think all your remarks are addressed now; PTAL :) |
vstinner
left a comment
There was a problem hiding this comment.
LGTM.
If you want, you can replace from test.test_sqlite3.util import with from .util import.
erlend-aasland
commented
Aug 16, 2023
Thanks for the review, Victor and Nikita! |
Uh oh!
There was an error while loading. Please reload this page.