FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-151029: Fix `test_remote_exec_deleted_static_executable` on static installed builds (GH-152653) by miss-islington · Pull Request #152670 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 3 additions & 4 deletions Lib/test/test_sys.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2292,8 +2292,8 @@ def test_remote_exec_deleted_libpython(self):
def test_remote_exec_deleted_static_executable(self):
"""Test remote exec when the target static executable was deleted."""
build_dir = sysconfig.get_config_var('abs_builddir')
srcdir = sysconfig.get_config_var('srcdir')
if not build_dir or not srcdir:
stdlib_dir = os.path.dirname(os.path.abspath(os.__file__))
if not build_dir or not os.path.isdir(stdlib_dir):
self.skipTest('cannot determine build-tree locations')

pybuilddir_txt = os.path.join(build_dir, 'pybuilddir.txt')
Expand All @@ -2310,8 +2310,7 @@ def test_remote_exec_deleted_static_executable(self):
copied_build_dir = os.path.join(copied_root, 'build')
copied_pybuilddir = os.path.join(copied_build_dir, pybuilddir)
os.makedirs(os.path.dirname(copied_pybuilddir))
os.symlink(os.path.join(srcdir, 'Lib'),
os.path.join(copied_root, 'Lib'))
os.symlink(stdlib_dir, os.path.join(copied_root, 'Lib'))
os.symlink(source_ext_dir, copied_pybuilddir)
shutil.copy2(pybuilddir_txt,
os.path.join(copied_build_dir, 'pybuilddir.txt'))
Expand Down
Loading

Back | FazBrowse Home | New Git URL