Skip to content

Python binding tests fail on Python 3.13+ with ResourceWarning #2720

Description

@dannycjones

This issue was found when validating 0.10.0-rc1.

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

To reproduce:

cd bindings/python
uv venv --python 3.13
uv pip install -e "." --group dev
uv run pytest tests/test_huggingface_and_cdc.py -k "not hf"

I plan to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions