test(sqlite): use context managers for sqlite connections to avoid ResourceWarning
in python 3.13
#19629
Loading
ResourceWarning
in python 3.13
#19629