From 2fae05d10645f3dfe3dc429522adfe71d6f43ab0 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Thu, 25 Jun 2026 21:26:19 +0200 Subject: [PATCH 1/3] Don't fail tests on torch > 2.10 --- test/test_torch_geometric.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_torch_geometric.py b/test/test_torch_geometric.py index 205800f..2335f6e 100644 --- a/test/test_torch_geometric.py +++ b/test/test_torch_geometric.py @@ -336,6 +336,8 @@ def test_to_torch_geometric_heterogeneous_graph(conn_db_readonly: ConnDB) -> Non torch_geometric_data, pos_to_idx, unconverted_properties, edge_properties = ( res.get_as_torch_geometric() ) + # Filter torch.script.jit deprecation warnings in pytorch > 2.10-ish + ws = [w for w in ws if "deprecated" not in str(w.message)] assert len(ws) == 13 warnings_ground_truth = { @@ -667,6 +669,8 @@ def test_to_torch_geometric_multi_dimensional_lists( torch_geometric_data, pos_to_idx, unconverted_properties, _ = ( res.get_as_torch_geometric() ) + # Filter torch.script.jit deprecation warnings in pytorch > 2.10-ish + ws = [w for w in ws if "deprecated" not in str(w.message)] assert len(ws) == 1 assert ( str(ws[0].message) @@ -721,6 +725,8 @@ def test_to_torch_geometric_no_properties_converted( torch_geometric_data, pos_to_idx, unconverted_properties, _ = ( res.get_as_torch_geometric() ) + # Filter torch.script.jit deprecation warnings in pytorch > 2.10-ish + ws = [w for w in ws if "deprecated" not in str(w.message)] assert len(ws) == 3 warnings_ground_truth = { "Property personLongString.name of type STRING is not supported by torch_geometric. The property is marked as unconverted.", From 1dc0120e103c8ddade163c08634d4aa63ae9df52 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Thu, 25 Jun 2026 21:26:51 +0200 Subject: [PATCH 2/3] Deps: add pytest-xdist, upgrade ruff --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e00d54f..627378e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,9 +23,10 @@ dev = [ "pybind11~=2.13", "pytest", "pytest-asyncio~=1.0", + "pytest-xdist~=3.0", "setuptools~=80.9", "black==26.3.0", - "ruff==0.15.18", + "ruff==0.15.19", "mypy==1.16.0", "torch>=2.5.0", "torch-geometric>=2.5.0", From a0d212428224cb361385f6446b8f902040b72eb0 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Thu, 25 Jun 2026 21:27:09 +0200 Subject: [PATCH 3/3] Add nproc param to pytest example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc7e300..c6f1260 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ git submodule update --init --recursive Then run tests with: ```bash -uv run pytest +uv run pytest -n $(nproc) ``` ### Pybind backend from inverted layout