Skip to content

Commit

Permalink
Fix order-dependency in test.
Browse files Browse the repository at this point in the history
Eensure it can retrieve the ambient Pip version if needed on its own.
  • Loading branch information
jsirois committed Nov 3, 2023
1 parent c62835b commit 3be3d0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/test_issue_539.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from pex.common import temporary_dir
from pex.pip.installation import get_pip
from pex.resolve.configured_resolver import ConfiguredResolver
from testing import IS_LINUX_ARM64, IS_PYPY, PY_VER, run_pex_command


Expand All @@ -35,11 +36,12 @@ def test_abi3_resolution():
# sdist. Since we want to test in --no-build, we pre-resolve/build the pycparser wheel here and
# add the resulting wheelhouse to the --no-build pex command.
download_dir = os.path.join(td, ".downloads")
get_pip().spawn_download_distributions(
pip = get_pip(resolver=ConfiguredResolver.default())
pip.spawn_download_distributions(
download_dir=download_dir, requirements=["pycparser"]
).wait()
wheel_dir = os.path.join(td, ".wheels")
get_pip().spawn_build_wheels(
pip.spawn_build_wheels(
wheel_dir=wheel_dir, distributions=glob.glob(os.path.join(download_dir, "*"))
).wait()

Expand Down

0 comments on commit 3be3d0e

Please sign in to comment.