Skip to content

Commit 5cab2ce

Browse files
committed
Update tests to check pip's debug output for platform tags
1 parent 2a1e1a2 commit 5cab2ce

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

tests/test_environment.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ def test_explicit_platform_tags(tmp_path, host_python, build_python, architectur
125125
assert "foobar1234" in out
126126
assert "mytag" in out
127127

128+
out = crossenv.check_output(
129+
["pip", "debug", "--verbose"],
130+
universal_newlines=True,
131+
).strip()
132+
assert "foobar1234" in out
133+
assert "mytag" in out
134+
128135

129136
def test_explicit_manylinux(tmp_path, host_python, build_python, architecture):
130137
# not defined for all architectures, so pass them
@@ -155,6 +162,20 @@ def test_explicit_manylinux(tmp_path, host_python, build_python, architecture):
155162
assert "manylinux_2_17" in out
156163

157164

165+
def test_pip_default_platform(tmp_path, host_python, build_python, architecture):
166+
crossenv = make_crossenv(
167+
tmp_path,
168+
host_python,
169+
build_python,
170+
)
171+
172+
out = crossenv.check_output(
173+
["pip", "debug", "--verbose"],
174+
universal_newlines=True,
175+
).strip()
176+
assert f"linux_{architecture.machine}" in out
177+
178+
158179
def test_very_long_paths(tmp_path_factory, host_python, build_python):
159180
tmp = tmp_path_factory.mktemp("A" * 128)
160181
dirname = tmp / ("B" * 128)

0 commit comments

Comments
 (0)