/
niceSOFT
/
python3-attrs
Обзор
Документация
Войти
/
niceSOFT
/
python3-attrs
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/test_3rd_party.py
31 строка
694 B
Lumír 'Frenzy' Balhar
Don't expect TestCloudpickleCompat to fail with Python 3.14 (#1398)
27 янв 2025, 15:42
Не верифицирован
27 янв 2025, 15:42
eb49c53
Код
Авторство
О чём код?
# SPDX-License-Identifier: MIT """ Tests for compatibility against other Python modules. """ import pytest from hypothesis import given from .strategies import simple_classes cloudpickle = pytest.importorskip("cloudpickle") class TestCloudpickleCompat: """ Tests for compatibility with ``cloudpickle``. """ @given(simple_classes(cached_property=False)) def test_repr(self, cls): """ attrs instances can be pickled and un-pickled with cloudpickle. """ inst = cls() # Exact values aren't a concern so long as neither direction # raises an exception. pkl = cloudpickle.dumps(inst) cloudpickle.loads(pkl)