Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4c656a

Browse files
authored
Remove LD_LIBRARY_PATH before running gdb (#13594)
Suggestion by @peace-maker
1 parent a91c147 commit b4c656a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

stubs/gdb/METADATA.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ extra_description = """\
1313
[tool.stubtest]
1414
platforms = ["linux"]
1515
apt_dependencies = ["gdb"]
16-
# TODO (2025-03-05): unskip once `gdb` can be installed on `ubuntu-24.04`,
17-
# see https://github.com/python/typeshed/pull/13582
18-
skip = true

tests/stubtest_third_party.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ def setup_gdb_stubtest_command(venv_dir: Path, stubtest_cmd: list[str]) -> bool:
252252
import sys
253253
254254
stubtest_env = os.environ | {{"STUBTEST_ARGS": json.dumps(sys.argv)}}
255+
# With LD_LIBRARY_PATH set, some GitHub action runners look in the wrong
256+
# location for gdb, causing stubtest to fail.
257+
stubtest_env.pop("LD_LIBRARY_PATH", None)
255258
gdb_cmd = [
256259
"gdb",
257260
"--quiet",

0 commit comments

Comments
 (0)