You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "dannycjones (via GitHub)" <gi...@apache.org> on 2026/06/26 23:19:43 UTC

[PR] fix: Update Python binding test fixtures to close catalogs [iceberg-rust]

dannycjones opened a new pull request, #2721:
URL: https://github.com/apache/iceberg-rust/pull/2721

   ## Which issue does this PR close?
   
   - Closes #2720.
   
   ## What changes are included in this PR?
   
   On Python 3.13, the tests error with ResourceWarning: unclosed database at session teardown. This is because the SqlCatalog (and its underlying sqlite3 connections) are never explicitly closed. Python 3.13 began reporting this error: https://docs.python.org/3.13/whatsnew/3.13.html#sqlite3
   
   This change adopts the PyTest fixture generator pattern, where the fixture yields some value and then after the test, the fixture function is resumed to perform cleanup.
   
   ## Are these changes tested?
   
   Yes, tests pass after the changes on Python 3.13 and Python 3.14.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org