Skip to content

Commit

Permalink
Update frozenset
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed Oct 14, 2024
1 parent 76e0e3f commit 83fdd94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import re
from functools import lru_cache
from typing import TYPE_CHECKING, FrozenSet
from typing import TYPE_CHECKING

import pytest

Expand Down Expand Up @@ -46,8 +46,8 @@
from _pytest.nodes import Node


ALL_POSSIBLE_OPTIONAL_MARKERS = StashKey[FrozenSet[str]]()
ENABLED_OPTIONAL_MARKERS = StashKey[FrozenSet[str]]()
ALL_POSSIBLE_OPTIONAL_MARKERS = StashKey[frozenset[str]]()
ENABLED_OPTIONAL_MARKERS = StashKey[frozenset[str]]()


def pytest_addoption(parser: "Parser") -> None:
Expand Down Expand Up @@ -120,7 +120,7 @@ def pytest_collection_modifyitems(config: "Config", items: "list[Node]") -> None


@lru_cache
def skip_mark(tests: FrozenSet[str]) -> "MarkDecorator":
def skip_mark(tests: frozenset[str]) -> "MarkDecorator":
names = ", ".join(sorted(tests))
return pytest.mark.skip(reason=f"Marked with disabled optional tests ({names})")

Expand Down

0 comments on commit 83fdd94

Please sign in to comment.