Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/_aix_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# if not available, the config_vars are also definitely not available
# supply substitutes to bootstrap the build
try:
import subprocess
from subprocess import check_output
_have_subprocess = True
_tmp_bd = get_config_var("AIX_BUILDDATE")
_bgt = get_config_var("BUILD_GNU_TYPE")
Expand Down Expand Up @@ -50,7 +50,7 @@ def _aix_bosmp64():
"""
if _have_subprocess:
# We expect all AIX systems to have lslpp installed in this location
out = subprocess.check_output(["/usr/bin/lslpp", "-Lqc", "bos.mp64"])
out = check_output(["/usr/bin/lslpp", "-Lqc", "bos.mp64"])
out = out.decode("utf-8").strip().split(":") # type: ignore
# Use str() and int() to help mypy see types
return str(out[2]), int(out[-1])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Update test in `Lib/_aix_support.py` to check for `subprocess.check_output()` rather
than `subprocess` as a loadable module because 1ec63b62035e73111e204a0e03b83503e1c58f2e
now provides a minimal subprocess via setup.py.
Patch by M. Felt.