Skip to content

Commit c7e7e42

Browse files
committed
Apply black
1 parent b84e5f3 commit c7e7e42

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

tests/conftest.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,13 @@ def __call__(
502502

503503
@pytest.fixture(scope="session")
504504
def script_factory(
505-
virtualenv_factory: Callable[[Path], VirtualEnvironment], deprecated_python: bool, zipapp: Optional[str]
505+
virtualenv_factory: Callable[[Path], VirtualEnvironment],
506+
deprecated_python: bool,
507+
zipapp: Optional[str],
506508
) -> ScriptFactory:
507509
def factory(
508-
tmpdir: Path, virtualenv: Optional[VirtualEnvironment] = None,
510+
tmpdir: Path,
511+
virtualenv: Optional[VirtualEnvironment] = None,
509512
) -> PipTestEnvironment:
510513
if virtualenv is None:
511514
virtualenv = virtualenv_factory(tmpdir.joinpath("venv"))
@@ -544,6 +547,7 @@ def factory(
544547
runpy.run_module("pip", run_name="__main__")
545548
"""
546549

550+
547551
def make_zipapp_from_pip(zipapp_name: Path) -> None:
548552
pip_dir = Path(pip_location).parent
549553
with zipapp_name.open("wb") as zipapp_file:
@@ -559,9 +563,10 @@ def make_zipapp_from_pip(zipapp_name: Path) -> None:
559563
zipapp.writestr("__main__.py", ZIPAPP_MAIN)
560564

561565

562-
563566
@pytest.fixture(scope="session")
564-
def zipapp(request: pytest.FixtureRequest, tmpdir_factory: pytest.TempPathFactory) -> Optional[str]:
567+
def zipapp(
568+
request: pytest.FixtureRequest, tmpdir_factory: pytest.TempPathFactory
569+
) -> Optional[str]:
565570
"""
566571
If the user requested for pip to be run from a zipapp, build that zipapp
567572
and return its location. If the user didn't request a zipapp, return None.

tests/lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def pip(
708708
kwargs["allow_stderr_warning"] = True
709709
if self.zipapp:
710710
exe = "python"
711-
args = (self.zipapp, ) + args
711+
args = (self.zipapp,) + args
712712
elif use_module:
713713
exe = "python"
714714
args = ("-m", "pip") + args

0 commit comments

Comments
 (0)