Skip to content

Commit 67c6f0e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 565b624 commit 67c6f0e

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/_pytest/fixtures.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import functools
33
import inspect
44
import os
5-
import sys
65
import warnings
76
from collections import defaultdict
87
from collections import deque
@@ -16,7 +15,6 @@
1615
from typing import final
1716
from typing import Generator
1817
from typing import Generic
19-
from typing import Hashable
2018
from typing import Iterable
2119
from typing import Iterator
2220
from typing import List

src/_pytest/python.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ def _genfunctions(self, name: str, funcobj) -> Iterator["Function"]:
503503
if not metafunc._calls:
504504
yield Function.from_parent(self, name=name, fixtureinfo=fixtureinfo)
505505
else:
506-
507506
# Dynamic direct parametrization may have shadowed some fixtures,
508507
# so make sure we update what the function really needs.
509508
fixtureinfo.prune_dependency_tree()
@@ -1431,7 +1430,7 @@ def parametrize(
14311430
unittest=False,
14321431
ids=None,
14331432
is_pseudo=True,
1434-
_ispytest=True
1433+
_ispytest=True,
14351434
)
14361435
if name2pseudofixturedef is not None:
14371436
name2pseudofixturedef[argname] = fixturedef

testing/python/fixtures.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33
import textwrap
44
from pathlib import Path
5-
from unittest.mock import Mock
65

76
import pytest
87
from _pytest import fixtures
@@ -13,7 +12,6 @@
1312
from _pytest.pytester import get_public_names
1413
from _pytest.pytester import Pytester
1514
from _pytest.python import Function
16-
from _pytest.scope import HIGH_SCOPES
1715

1816

1917
def test_getfuncargnames_functions():
@@ -4542,4 +4540,4 @@ def test(fixture1, fixture2):
45424540
r" <Function test\[a-2\]>",
45434541
r" <Function test\[b-1\]>",
45444542
]
4545-
)
4543+
)

0 commit comments

Comments
 (0)