diff options
Diffstat (limited to 'tests/unit/utils/test_version.py')
-rw-r--r-- | tests/unit/utils/test_version.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/utils/test_version.py b/tests/unit/utils/test_version.py index 7633cd92b..042d58b0d 100644 --- a/tests/unit/utils/test_version.py +++ b/tests/unit/utils/test_version.py @@ -32,7 +32,7 @@ import logging import textwrap import datetime -import attr +import dataclasses import pytest import hypothesis import hypothesis.strategies @@ -943,18 +943,18 @@ class TestChromiumVersion: assert version._chromium_version() == 'avoided' -@attr.s +@dataclasses.dataclass class VersionParams: - name = attr.ib() - git_commit = attr.ib(True) - frozen = attr.ib(False) - qapp = attr.ib(True) - with_webkit = attr.ib(True) - known_distribution = attr.ib(True) - ssl_support = attr.ib(True) - autoconfig_loaded = attr.ib(True) - config_py_loaded = attr.ib(True) + name: str + git_commit: bool = True + frozen: bool = False + qapp: bool = True + with_webkit: bool = True + known_distribution: bool = True + ssl_support: bool = True + autoconfig_loaded: bool = True + config_py_loaded: bool = True @pytest.mark.parametrize('params', [ |