Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Next Next commit
Remove an unnecessary lambda in tests
  • Loading branch information
geryogam committed Nov 13, 2022
commit bb3010380230ce63b67fc8adbaccc83951b25035
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def setUp(self):
self.cx = sqlite.connect(":memory:")
self.cx.execute("create table t(t)")
self.traced = []
self.cx.set_trace_callback(lambda stmt: self.traced.append(stmt))
self.cx.set_trace_callback(self.traced.append)

def tearDown(self):
self.cx.close()
Expand Down