Skip to content

Commit df497a9

Browse files
pythongh-93370: Catch sqlite3.version deprecation warning in pythoninfo.py
1 parent bd3c1c1 commit df497a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/pythoninfo.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ def collect_sqlite(info_add):
603603
return
604604

605605
attributes = ('version', 'sqlite_version')
606-
copy_attributes(info_add, sqlite3, 'sqlite3.%s', attributes)
606+
with warnings.catch_warnings(record=True):
607+
copy_attributes(info_add, sqlite3, 'sqlite3.%s', attributes)
607608

608609

609610
def collect_zlib(info_add):

0 commit comments

Comments
 (0)