Skip to content

Commit

Permalink
Update Lib/test/test_sqlite3/test_dump.py
Browse files Browse the repository at this point in the history
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
erlend-aasland and serhiy-storchaka committed Apr 24, 2024
1 parent d154cf9 commit a0d0539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_dump_custom_row_factory(self):
# gh-118221: iterdump should be able to cope with custom row factories.
def dict_factory(cu, row):
fields = [col[0] for col in cu.description]
return {k: v for k, v in zip(fields, row)}
return dict(zip(fields, row))

self.cx.row_factory = dict_factory
CREATE_TABLE = "CREATE TABLE test(t);"
Expand Down

0 comments on commit a0d0539

Please sign in to comment.