Skip to content

Commit

Permalink
Skip DSSMModel config test on Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
chezou committed Dec 10, 2024
1 parent 384dfcc commit 6e6d193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/models/test_serialization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import typing as tp
from tempfile import NamedTemporaryFile

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 6e6d193

Please sign in to comment.