Skip to content

Commit ce1e1e4

Browse files
committed
Run ruff check . --select PT001 --fix
1 parent ac45195 commit ce1e1e4

12 files changed

+12
-12
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def tmp_path(request: pytest.FixtureRequest, tmp_path: Path) -> Iterator[Path]:
216216
shutil.rmtree(tmp_path, ignore_errors=True)
217217

218218

219-
@pytest.fixture()
219+
@pytest.fixture
220220
def tmpdir(tmp_path: Path) -> Path:
221221
"""Override Pytest's ``tmpdir`` with our pathlib implementation.
222222

tests/functional/test_install_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def keyring_provider_implementation(request: pytest.FixtureRequest) -> str:
361361
return request.param
362362

363363

364-
@pytest.fixture()
364+
@pytest.fixture
365365
def flags(
366366
request: pytest.FixtureRequest,
367367
interactive: bool,

tests/functional/test_install_reqs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ArgRecordingSdistMaker(Protocol):
3232
def __call__(self, name: str, **kwargs: Any) -> ArgRecordingSdist: ...
3333

3434

35-
@pytest.fixture()
35+
@pytest.fixture
3636
def arg_recording_sdist_maker(
3737
script: PipTestEnvironment,
3838
) -> ArgRecordingSdistMaker:

tests/functional/test_new_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def assert_editable(script: PipTestEnvironment, *args: str) -> None:
3535
), f"{args!r} not all found in {script.site_packages_path!r}"
3636

3737

38-
@pytest.fixture()
38+
@pytest.fixture
3939
def make_fake_wheel(script: PipTestEnvironment) -> MakeFakeWheel:
4040
def _make_fake_wheel(name: str, version: str, wheel_tag: str) -> pathlib.Path:
4141
wheel_house = script.scratch_path.joinpath("wheelhouse")

tests/functional/test_new_resolver_target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
MakeFakeWheel = Callable[[str], str]
1111

1212

13-
@pytest.fixture()
13+
@pytest.fixture
1414
def make_fake_wheel(script: PipTestEnvironment) -> MakeFakeWheel:
1515
def _make_fake_wheel(wheel_tag: str) -> str:
1616
wheel_house = script.scratch_path.joinpath("wheelhouse")

tests/functional/test_new_resolver_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_new_resolver_install_user_conflict_in_user_site(
9191
result.did_not_create(base_2_dist_info)
9292

9393

94-
@pytest.fixture()
94+
@pytest.fixture
9595
def patch_dist_in_site_packages(virtualenv: VirtualEnvironment) -> None:
9696
# Since the tests are run from a virtualenv, and to avoid the "Will not
9797
# install to the usersite because it will lack sys.path precedence..."

tests/functional/test_pep668.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from tests.lib.venv import VirtualEnvironment
1010

1111

12-
@pytest.fixture()
12+
@pytest.fixture
1313
def patch_check_externally_managed(virtualenv: VirtualEnvironment) -> None:
1414
# Since the tests are run from a virtual environment, and we can't
1515
# guarantee access to the actual stdlib location (where EXTERNALLY-MANAGED

tests/functional/test_truststore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
PipRunner = Callable[..., TestPipResult]
88

99

10-
@pytest.fixture()
10+
@pytest.fixture
1111
def pip_no_truststore(script: PipTestEnvironment) -> PipRunner:
1212
def pip(*args: str, **kwargs: Any) -> TestPipResult:
1313
return script.pip(*args, "--use-deprecated=legacy-certs", **kwargs)

tests/functional/test_uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def test_uninstall_editable_and_pip_install(
669669
script.assert_not_installed("FSPkg")
670670

671671

672-
@pytest.fixture()
672+
@pytest.fixture
673673
def move_easy_install_pth(script: PipTestEnvironment) -> Iterator[None]:
674674
"""Move easy-install.pth out of the way for testing easy_install."""
675675
easy_install_pth = join(script.site_packages_path, "easy-install.pth")

tests/unit/resolution_resolvelib/test_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717

1818

19-
@pytest.fixture()
19+
@pytest.fixture
2020
def resolver(preparer: RequirementPreparer, finder: PackageFinder) -> Resolver:
2121
resolver = Resolver(
2222
preparer=preparer,

0 commit comments

Comments
 (0)