Python binding tests fail on Python 3.13+ with ResourceWarning
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:
```sh
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.
1 条评论