|
6 | 6 | import sys |
7 | 7 | from itertools import groupby |
8 | 8 | from types import ModuleType |
9 | | -from typing import Any |
10 | | -from typing import Callable |
11 | | -from typing import TypeVar |
| 9 | +from typing import Any, Callable, TypeVar |
12 | 10 |
|
13 | 11 | from _pytest.config import Config |
14 | 12 | from _pytest.config.argparsing import Parser |
15 | 13 | from _pytest.nodes import Item |
16 | | -from pytest import Collector |
17 | | -from pytest import fixture |
18 | | -from pytest import hookimpl |
| 14 | +from pytest import Collector, fixture, hookimpl |
19 | 15 |
|
20 | 16 | if sys.version_info < (3, 10): |
21 | 17 | from importlib_metadata import entry_points |
@@ -117,9 +113,9 @@ def pytest_configure(config: Config) -> None: |
117 | 113 |
|
118 | 114 | seed_value = config.getoption("randomly_seed") |
119 | 115 | if seed_value == "last": |
120 | | - assert hasattr( |
121 | | - config, "cache" |
122 | | - ), "The cacheprovider plugin is required to use 'last'" |
| 116 | + assert hasattr(config, "cache"), ( |
| 117 | + "The cacheprovider plugin is required to use 'last'" |
| 118 | + ) |
123 | 119 | assert config.cache is not None |
124 | 120 | seed = config.cache.get("randomly_seed", default_seed) |
125 | 121 | elif seed_value == "default": |
|
0 commit comments