From 6e6d193e2cd19d1ce1fdc7e850bd27c8553c2caf Mon Sep 17 00:00:00 2001 From: Aki Ariga Date: Tue, 10 Dec 2024 13:54:42 -0800 Subject: [PATCH] Skip DSSMModel config test on Python 3.13 --- tests/models/test_serialization.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/models/test_serialization.py b/tests/models/test_serialization.py index c46f19be..b77168d3 100644 --- a/tests/models/test_serialization.py +++ b/tests/models/test_serialization.py @@ -1,3 +1,4 @@ +import sys import typing as tp from tempfile import NamedTemporaryFile @@ -155,6 +156,7 @@ def test_fails_on_incorrect_model_cls(self, mode: tp.Literal["pydantic", "dict"] with pytest.raises(ValidationError): model_from_config(config) + @pytest.mark.skipif(sys.version_info >= (3, 13), reason="`torch` is not compatible with Python 3.13") @pytest.mark.parametrize("model_cls", ("rectools.models.DSSMModel", DSSMModel)) def test_fails_on_model_cls_without_from_config_support(self, model_cls: tp.Any) -> None: config = {"cls": model_cls}