Skip to content
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
Next Next commit
Improve test
  • Loading branch information
erlend-aasland committed Jul 22, 2022
commit 95296cb66c758db921b78642d91ed9d51092c603
5 changes: 3 additions & 2 deletions Lib/test/test_sqlite3/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def test_connection_factory_relayed_call(self):
# gh-95132: keyword args must not be passed as positional args
class Factory(sqlite.Connection):
def __init__(self, *args, **kwargs):
kwargs['timeout'] = 42
kwargs["isolation_level"] = None
super(Factory, self).__init__(*args, **kwargs)

sqlite.connect(":memory:", factory=Factory)
con = sqlite.connect(":memory:", factory=Factory)
self.assertIsNone(con.isolation_level)


class CursorFactoryTests(unittest.TestCase):
Expand Down