Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-118221: Always use the default row factory in sqlite3.iterdump()#118223

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes from1 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
PrevPrevious commit
Update Lib/test/test_sqlite3/test_dump.py
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
@erlend-aasland@serhiy-storchaka
erlend-aasland andserhiy-storchaka authoredApr 24, 2024
commita0d0539e4713276b6d38e6dd2d71440da6606a6a
2 changes: 1 addition & 1 deletionLib/test/test_sqlite3/test_dump.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 inzip(fields, row)}
returndict(zip(fields, row))

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

[8]ページ先頭

©2009-2025 Movatter.jp