File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 16
16
],
17
17
)
18
18
def test_entrypoints_work (entrypoint : str , script : PipTestEnvironment ) -> None :
19
+ if script .zipapp :
20
+ pytest .skip ("Zipapp does not include entrypoints" )
21
+
19
22
fake_pkg = script .temp_path / "fake_pkg"
20
23
fake_pkg .mkdir ()
21
24
fake_pkg .joinpath ("setup.py" ).write_text (
Original file line number Diff line number Diff line change @@ -107,7 +107,12 @@ def test_completion_for_supported_shells(
107
107
Test getting completion for bash shell
108
108
"""
109
109
result = script_with_launchers .pip ("completion" , "--" + shell , use_module = False )
110
- assert completion in result .stdout , str (result .stdout )
110
+ actual = str (result .stdout )
111
+ if script_with_launchers .zipapp :
112
+ # The zipapp reports its name as "pip.pyz", but the expected
113
+ # output assumes "pip"
114
+ actual = actual .replace ("pip.pyz" , "pip" )
115
+ assert completion in actual , actual
111
116
112
117
113
118
@pytest .fixture (scope = "session" )
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ def test_correct_pip_version(script: PipTestEnvironment) -> None:
41
41
"""
42
42
Check we are running proper version of pip in run_pip.
43
43
"""
44
+
45
+ if script .zipapp :
46
+ pytest .skip ("Test relies on the pip under test being in the filesystem" )
47
+
44
48
# output is like:
45
49
# pip PIPVERSION from PIPDIRECTORY (python PYVERSION)
46
50
result = script .pip ("--version" )
You can’t perform that action at this time.
0 commit comments