Skip to content

Commit

Permalink
pythongh-93370: Catch sqlite3.version deprecation warning in pythonin…
Browse files Browse the repository at this point in the history
…fo.py
  • Loading branch information
erlend-aasland committed Jun 25, 2022
1 parent bd3c1c1 commit df497a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/pythoninfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ def collect_sqlite(info_add):
return

attributes = ('version', 'sqlite_version')
copy_attributes(info_add, sqlite3, 'sqlite3.%s', attributes)
with warnings.catch_warnings(record=True):
copy_attributes(info_add, sqlite3, 'sqlite3.%s', attributes)


def collect_zlib(info_add):
Expand Down

0 comments on commit df497a9

Please sign in to comment.