Skip to content

fixup: closing connection when load sql files#1111

Merged
fizyk merged 2 commits intodbfixtures:mainfrom
dmitryerr:fix-sql-connection
Mar 19, 2025
Merged

fixup: closing connection when load sql files#1111
fizyk merged 2 commits intodbfixtures:mainfrom
dmitryerr:fix-sql-connection

Conversation

@dmitryerr
Copy link
Copy Markdown
Contributor

while execute tests with load kwargs appears warnings:

/usr/local/lib/python3.12/site-packages/psycopg/_connection_base.py:149: ResourceWarning: connection <psycopg.Connection [IDLE] (host=test user=test database=tests_tmpl) at 0x7f450fb451f0> was deleted while still open. Please use 'with' or '.close()' to close the connection

@fizyk fizyk merged commit 8cfaaec into dbfixtures:main Mar 19, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants